Struct guppy::graph::summaries::SummaryWithMetadata [−][src]
pub struct SummaryWithMetadata<M = Value> {
pub metadata: Option<M>,
pub target_packages: BTreeMap<SummaryId, PackageInfo>,
pub host_packages: BTreeMap<SummaryId, PackageInfo>,
}
Expand description
An in-memory representation of a build summary.
The metadata parameter is customizable.
For more, see the crate-level documentation.
Fields
metadata: Option<M>
Extra metadata associated with the summary.
This may be used for storing extra information about the summary.
The type defaults to toml::Value
but is customizable.
target_packages: BTreeMap<SummaryId, PackageInfo>
The packages and features built on the target platform.
host_packages: BTreeMap<SummaryId, PackageInfo>
The packages and features built on the host platform.
Implementations
pub fn parse<'de>(s: &'de str) -> Result<SummaryWithMetadata<M>, Error> where
M: Deserialize<'de>,
pub fn parse<'de>(s: &'de str) -> Result<SummaryWithMetadata<M>, Error> where
M: Deserialize<'de>,
Deserializes a summary from the given string, with optional custom metadata.
Perform a diff of this summary against another.
This doesn’t diff the metadata, just the initials and packages.
Serializes this summary to a TOML string.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryWithMetadata<M>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryWithMetadata<M>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl<M> RefUnwindSafe for SummaryWithMetadata<M> where
M: RefUnwindSafe,
impl<M> Send for SummaryWithMetadata<M> where
M: Send,
impl<M> Sync for SummaryWithMetadata<M> where
M: Sync,
impl<M> Unpin for SummaryWithMetadata<M> where
M: Unpin,
impl<M> UnwindSafe for SummaryWithMetadata<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.