Struct rustsec::lockfile::Lockfile [−][src]
pub struct Lockfile {
pub version: ResolveVersion,
pub packages: Vec<Package, Global>,
pub root: Option<Package>,
pub metadata: BTreeMap<Key, Value>,
pub patch: Patch,
}Expand description
Parsed Cargo.lock file containing dependencies
Fields
version: ResolveVersionVersion of the Lockfile
packages: Vec<Package, Global>Dependencies enumerated in the lockfile
root: Option<Package>Legacy “root” dependency for backwards compatibility
metadata: BTreeMap<Key, Value>Package metadata
patch: PatchPatches
Implementations
Load lock data from a Cargo.lock file
Get the dependency tree for this Lockfile. Returns an error if the
contents of this lockfile aren’t well structured.
The dependency-tree Cargo feature must be enabled to use this.
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Lockfile, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Lockfile, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Lockfile
impl UnwindSafe for Lockfile
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more