struct Inner {Show 14 fields
name: InternedString,
source_id: SourceId,
registry_id: Option<SourceId>,
req: OptVersionReq,
specified_req: bool,
kind: DepKind,
only_match_name: bool,
explicit_name_in_toml: Option<InternedString>,
optional: bool,
public: bool,
default_features: bool,
features: Vec<InternedString>,
artifact: Option<Artifact>,
platform: Option<Platform>,
}
Expand description
The data underlying a Dependency
.
Fields§
§name: InternedString
§source_id: SourceId
§registry_id: Option<SourceId>
Source ID for the registry as specified in the manifest.
This will be None if it is not specified (crates.io dependency).
This is different from source_id
for example when both a path
and
registry
is specified. Or in the case of a crates.io dependency,
source_id
will be crates.io and this will be None.
req: OptVersionReq
§specified_req: bool
§kind: DepKind
§only_match_name: bool
§explicit_name_in_toml: Option<InternedString>
§optional: bool
§public: bool
§default_features: bool
§features: Vec<InternedString>
§artifact: Option<Artifact>
§platform: Option<Platform>
Trait Implementations§
impl Eq for Inner
impl StructuralPartialEq for Inner
Auto Trait Implementations§
impl Freeze for Inner
impl RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl UnwindSafe for Inner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 248 bytes