[][src]Struct reg_index::IndexDependency

pub struct IndexDependency {
    pub name: String,
    pub req: VersionReq,
    pub features: Vec<String>,
    pub optional: bool,
    pub default_features: bool,
    pub target: Option<String>,
    pub kind: DependencyKind,
    pub registry: Option<Url>,
    pub package: Option<String>,
    // some fields omitted
}

A dependency of a package.

Fields

name: String

Name of the dependency.

If the dependency is renamed from the original package name, this is the new name. The original package name is stored in the package field.

req: VersionReq

The semver requirement for this dependency.

features: Vec<String>

List of features enabled for this dependency.

optional: bool

Whether or not this is an optional dependency.

default_features: bool

Whether or not default features are enabled.

target: Option<String>

The target platform for the dependency.

kind: DependencyKind

The dependency kind.

registry: Option<Url>

The URL of the index of the registry where this dependency is from.

If not specified or null, it is assumed the dependency is in the current registry.

package: Option<String>

If the dependency is renamed, this is a string of the actual package name. If None, this dependency is not renamed.

Trait Implementations

impl Clone for IndexDependency[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Serialize for IndexDependency[src]

impl<'de> Deserialize<'de> for IndexDependency[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,