Struct cargo_metadata::Dependency [] [src]

pub struct Dependency {
    pub name: String,
    pub source: Option<String>,
    pub req: VersionReq,
    pub kind: DependencyKind,
    // 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

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.