Struct cargo_metadata::Dependency [−][src]
pub struct Dependency { pub name: String, pub source: Option<String>, pub req: VersionReq, pub kind: DependencyKind, pub optional: bool, pub uses_default_features: bool, pub features: Vec<String>, // some fields omitted }
A dependency of the main crate
Fields
name: String
Name as given in the Cargo.toml
source: Option<String>
The source of dependency
req: VersionReq
The required version
kind: DependencyKind
The kind of dependency this is
optional: bool
Whether this dependency is required or optional
uses_default_features: bool
Whether the default features in this dependency are used.
features: Vec<String>
The list of features enabled for this dependency.
Trait Implementations
impl Clone for Dependency
[src]
impl Clone for Dependency
fn clone(&self) -> Dependency
[src]
fn clone(&self) -> Dependency
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Dependency
[src]
impl Debug for Dependency
Auto Trait Implementations
impl Send for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Sync for Dependency