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: ResolveVersion
Version of the Lockfile
packages: Vec<Package>
Dependencies enumerated in the lockfile
root: Option<Package>
Legacy “root” dependency for backwards compatibility
metadata: Metadata
Package metadata
patch: Patch
Patches
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lockfile
impl<'de> Deserialize<'de> for Lockfile
source§fn 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
source§impl PartialEq<Lockfile> for Lockfile
impl PartialEq<Lockfile> for Lockfile
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.