[−][src]Struct reg_index::IndexDependency
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for IndexDependency
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for IndexDependency
impl Send for IndexDependency
impl Unpin for IndexDependency
impl RefUnwindSafe for IndexDependency
impl UnwindSafe for IndexDependency
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,