Struct cargo_metadata::Dependency
[−]
[src]
pub struct Dependency { pub name: String, pub source: Option<String>, pub req: VersionReq, pub kind: DependencyKind, pub optional: bool, // 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
Trait Implementations
impl Clone for Dependency
[src]
fn clone(&self) -> Dependency
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more