A dependency of a package.
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.
The semver requirement for this dependency.
List of features enabled for this dependency.
Whether or not this is an optional dependency.
Whether or not default features are enabled.
The target platform for the dependency.
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.
If the dependency is renamed, this is a string of the actual package
name. If None, this dependency is not renamed.
Performs copy-assignment from source
. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static