Struct guppy_summaries::SummaryWithMetadata [−][src]
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: PackageMap
The packages and features built on the target platform.
host_packages: PackageMap
The packages and features built on the host platform.
Implementations
impl<M> SummaryWithMetadata<M>
[src]
pub fn parse<'de>(s: &'de str) -> Result<Self, Error> where
M: Deserialize<'de>,
[src]
M: Deserialize<'de>,
Deserializes a summary from the given string, with optional custom metadata.
pub fn diff<'a, M2>(
&'a self,
other: &'a SummaryWithMetadata<M2>
) -> SummaryDiff<'a>
[src]
&'a self,
other: &'a SummaryWithMetadata<M2>
) -> SummaryDiff<'a>
Perform a diff of this summary against another.
This doesn't diff the metadata, just the initials and packages.
pub fn to_string(&self) -> Result<String, Error> where
M: Serialize,
[src]
M: Serialize,
Serializes this summary to a TOML string.
pub fn write_to_string(&self, dst: &mut String) -> Result<(), Error> where
M: Serialize,
[src]
M: Serialize,
Serializes this summary into the given TOML string, using pretty TOML syntax.
Trait Implementations
impl<M: Clone> Clone for SummaryWithMetadata<M>
[src]
fn clone(&self) -> SummaryWithMetadata<M>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M: Debug> Debug for SummaryWithMetadata<M>
[src]
impl<M> Default for SummaryWithMetadata<M>
[src]
impl<'de, M> Deserialize<'de> for SummaryWithMetadata<M> where
M: Deserialize<'de>,
[src]
M: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<M: Eq> Eq for SummaryWithMetadata<M>
[src]
impl<M: Hash> Hash for SummaryWithMetadata<M>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<M: PartialEq> PartialEq<SummaryWithMetadata<M>> for SummaryWithMetadata<M>
[src]
fn eq(&self, other: &SummaryWithMetadata<M>) -> bool
[src]
fn ne(&self, other: &SummaryWithMetadata<M>) -> bool
[src]
impl<M> Serialize for SummaryWithMetadata<M> where
M: Serialize,
[src]
M: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<M> StructuralEq for SummaryWithMetadata<M>
[src]
impl<M> StructuralPartialEq for SummaryWithMetadata<M>
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for SummaryWithMetadata<M> where
M: RefUnwindSafe,
[src]
M: RefUnwindSafe,
impl<M> Send for SummaryWithMetadata<M> where
M: Send,
[src]
M: Send,
impl<M> Sync for SummaryWithMetadata<M> where
M: Sync,
[src]
M: Sync,
impl<M> Unpin for SummaryWithMetadata<M> where
M: Unpin,
[src]
M: Unpin,
impl<M> UnwindSafe for SummaryWithMetadata<M> where
M: UnwindSafe,
[src]
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,