Struct crates_index_diff::Dependency [−][src]
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>, }
Expand description
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
Blanket Implementations
Mutably borrows from an owned value. Read more