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§
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
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<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.