Struct cargo_lock::Lockfile
source · [−]pub struct Lockfile {
pub version: ResolveVersion,
pub packages: Vec<Package>,
pub root: Option<Package>,
pub metadata: Metadata,
pub patch: Patch,
}Expand description
Parsed Cargo.lock file containing dependencies
Fields
version: ResolveVersionVersion of the Lockfile
packages: Vec<Package>Dependencies enumerated in the lockfile
root: Option<Package>Legacy “root” dependency for backwards compatibility
metadata: MetadataPackage metadata
patch: PatchPatches
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Lockfile
impl<'de> Deserialize<'de> for Lockfile
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Lockfile
impl StructuralEq for Lockfile
impl StructuralPartialEq for Lockfile
Auto Trait Implementations
impl RefUnwindSafe for Lockfile
impl Send for Lockfile
impl Sync for Lockfile
impl Unpin for Lockfile
impl UnwindSafe for Lockfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.