[][src]Struct crates_index_diff::Dependency

pub struct Dependency {
    pub name: String,
    pub required_version: String,
    pub features: Vec<String>,
    pub optional: bool,
    pub default_features: bool,
    pub target: Option<String>,
    pub kind: Option<String>,
    pub package: Option<String>,
}

A single dependency of a specific crate version

Fields

name: String

The crate name

required_version: String

The version the parent crate requires of this dependency

features: Vec<String>

All cargo features configured by the parent crate

optional: bool

True if this is an optional dependency

default_features: bool

True if default features are enabled

target: Option<String>

The name of the build target

kind: Option<String>

The kind of dependency, usually 'normal' or 'dev'

package: Option<String>

The package this crate is contained in

Trait Implementations

impl Clone for Dependency[src]

impl Debug for Dependency[src]

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

impl Eq for Dependency[src]

impl Ord for Dependency[src]

impl PartialEq<Dependency> for Dependency[src]

impl PartialOrd<Dependency> for Dependency[src]

impl Serialize for Dependency[src]

impl StructuralEq for Dependency[src]

impl StructuralPartialEq for Dependency[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.