[][src]Struct cargo_lock::package::Package

pub struct Package {
    pub name: Name,
    pub version: Version,
    pub source: Option<SourceId>,
    pub checksum: Option<Checksum>,
    pub dependencies: Vec<Dependency>,
    pub replace: Option<Dependency>,

Information about a Rust package (as sourced from Cargo.lock)


name: Name

Name of the package

version: Version

Version of the package

source: Option<SourceId>

Source identifier for the package

checksum: Option<Checksum>

Checksum for this package

dependencies: Vec<Dependency>

Dependencies of the package

replace: Option<Dependency>

Replace directive

Trait Implementations

impl Clone for Package[src]

impl Debug for Package[src]

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

impl Eq for Package[src]

impl<'_> From<&'_ Package> for Dependency[src]

fn from(pkg: &Package) -> Dependency[src]

Get the Dependency requirement for this [[package]]

impl Ord for Package[src]

impl PartialEq<Package> for Package[src]

impl PartialOrd<Package> for Package[src]

impl Serialize for Package[src]

impl StructuralEq for Package[src]

impl StructuralPartialEq for Package[src]

Auto Trait Implementations

impl RefUnwindSafe for Package

impl Send for Package

impl Sync for Package

impl Unpin for Package

impl UnwindSafe for Package

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.