pub struct DetailedTomlDependency<P: Clone = String> {
Show 17 fields version: Option<String>, registry: Option<String>, registry_index: Option<String>, path: Option<P>, git: Option<String>, branch: Option<String>, tag: Option<String>, rev: Option<String>, features: Option<Vec<String>>, optional: Option<bool>, default_features: Option<bool>, default_features2: Option<bool>, package: Option<String>, public: Option<bool>, artifact: Option<StringOrVec>, lib: Option<bool>, target: Option<String>,
}

Fields§

§version: Option<String>§registry: Option<String>§registry_index: Option<String>

The URL of the registry field. This is an internal implementation detail. When Cargo creates a package, it replaces registry with registry-index so that the manifest contains the correct URL. All users won’t have the same registry names configured, so Cargo can’t rely on just the name for crates published by other users.

§path: Option<P>§git: Option<String>§branch: Option<String>§tag: Option<String>§rev: Option<String>§features: Option<Vec<String>>§optional: Option<bool>§default_features: Option<bool>§default_features2: Option<bool>§package: Option<String>§public: Option<bool>§artifact: Option<StringOrVec>

One or more of bin, cdylib, staticlib, bin:<name>.

§lib: Option<bool>

If set, the artifact should also be a dependency

§target: Option<String>

A platform name, like x86_64-apple-darwin

Implementations§

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
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

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

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.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.