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 as given in the Cargo.toml

The source of dependency

The required version

The kind of dependency this is

Whether this dependency is required or optional

Trait Implementations

impl Clone for Dependency
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Dependency
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Dependency

impl Sync for Dependency