Struct cargo::sources::registry::RegistryDependency
source · struct RegistryDependency<'a> {
name: InternedString,
req: Cow<'a, str>,
features: Vec<InternedString>,
optional: bool,
default_features: bool,
target: Option<Cow<'a, str>>,
kind: Option<Cow<'a, str>>,
registry: Option<Cow<'a, str>>,
package: Option<InternedString>,
public: Option<bool>,
}
Expand description
A dependency as encoded in the index JSON.
Fields§
§name: InternedString
§req: Cow<'a, str>
§features: Vec<InternedString>
§optional: bool
§default_features: bool
§target: Option<Cow<'a, str>>
§kind: Option<Cow<'a, str>>
§registry: Option<Cow<'a, str>>
§package: Option<InternedString>
§public: Option<bool>
Implementations§
source§impl<'a> RegistryDependency<'a>
impl<'a> RegistryDependency<'a>
sourcepub fn into_dep(self, default: SourceId) -> CargoResult<Dependency>
pub fn into_dep(self, default: SourceId) -> CargoResult<Dependency>
Converts an encoded dependency in the registry to a cargo dependency
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for RegistryDependency<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RegistryDependency<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RegistryDependency<'a>
impl<'a> Send for RegistryDependency<'a>
impl<'a> Sync for RegistryDependency<'a>
impl<'a> Unpin for RegistryDependency<'a>
impl<'a> UnwindSafe for RegistryDependency<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
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:92 bytes