pub struct DepOp {
    pub crate_spec: Option<String>,
    pub rename: Option<String>,
    pub features: Option<IndexSet<String>>,
    pub default_features: Option<bool>,
    pub optional: Option<bool>,
    pub registry: Option<String>,
    pub path: Option<String>,
    pub git: Option<String>,
    pub branch: Option<String>,
    pub rev: Option<String>,
    pub tag: Option<String>,
}
Expand description

Dependency entry operation

Fields

crate_spec: Option<String>

Describes the crate

rename: Option<String>

Dependency key, overriding the package name in crate_spec

features: Option<IndexSet<String>>

Feature flags to activate

default_features: Option<bool>

Whether the default feature should be activated

optional: Option<bool>

Whether dependency is optional

registry: Option<String>

Registry for looking up dependency version

path: Option<String>

Git repo for dependency

git: Option<String>

Git repo for dependency

branch: Option<String>

Specify an alternative git branch

rev: Option<String>

Specify a specific git rev

tag: Option<String>

Specify a specific git tag

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.