pub struct SummaryId {
pub name: String,
pub version: Version,
pub source: SummarySource,
}
Available on crate feature
summaries
only.Expand description
A unique identifier for a package in a build summary.
Fields§
§name: String
The name of the package.
version: Version
The version number of the package.
source: SummarySource
The source for this package.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SummaryId
impl<'de> Deserialize<'de> for SummaryId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for SummaryId
impl Ord for SummaryId
source§impl PartialOrd<SummaryId> for SummaryId
impl PartialOrd<SummaryId> for SummaryId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SummaryId
impl Serialize for SummaryId
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SummaryId
impl StructuralEq for SummaryId
impl StructuralPartialEq for SummaryId
Auto Trait Implementations§
impl RefUnwindSafe for SummaryId
impl Send for SummaryId
impl Sync for SummaryId
impl Unpin for SummaryId
impl UnwindSafe for SummaryId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.