pub struct DependencyUI {
    dep: Dependency,
    available_version: Option<Version>,
    available_features: BTreeMap<String, Vec<String>>,
}
Expand description

Track presentation-layer information with the editable representation of a [dependencies] entry (Dependency)

Fields§

§dep: Dependency

Editable representation of a [depednencies] entry

§available_version: Option<Version>

The version of the crate that we pulled available_features from

§available_features: BTreeMap<String, Vec<String>>

The widest set of features compatible with Dependencys version requirement

Implementations§

Methods from Deref<Target = Dependency>§

Get the dependency source.

Get version of dependency.

Get registry of the dependency.

Get the alias for the dependency (if any).

Whether default features are activated.

Get whether the dep is optional.

Get the SourceID for this dependency.

Query to find this dependency.

Get the dependency name as defined in the manifest, that is, either the alias (rename field if Some), or the official package name (name field).

Convert dependency to TOML.

Returns a tuple with the dependency’s name and either the version as a String or the path/git repository as an InlineTable. (If the dependency is set as optional or default-features is set to false, an InlineTable is returned in any case.)

Panic

Panics if the path is relative

Modify existing entry to match this dependency.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Formats the value using the given formatter. Read more
Converts to this type from the input type.

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
Converts the given value to a String. 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: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 416 bytes