[go: up one dir, main page]

[][src]Struct rustsec::lockfile::Lockfile

pub struct Lockfile {
    pub packages: Vec<Package>,
}

Parsed Cargo.lock file containing dependencies

Fields

packages: Vec<Package>

Dependencies enumerated in the lockfile

Methods

impl Lockfile[src]

pub fn load<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Load lock data from a Cargo.lock file

pub fn from_toml(toml_string: &str) -> Result<Self, Error>[src]

Parse the TOML data from the Cargo.lock file

Trait Implementations

impl PartialEq<Lockfile> for Lockfile[src]

impl Clone for Lockfile[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Lockfile[src]

impl Debug for Lockfile[src]

impl<'de> Deserialize<'de> for Lockfile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]