Enum guppy::graph::summaries::diff::SummaryDiffStatus [−][src]
pub enum SummaryDiffStatus<'a> {
Added {
info: &'a PackageInfo,
},
Removed {
old_info: &'a PackageInfo,
},
Modified {
old_version: Option<&'a Version>,
old_source: Option<&'a SummarySource>,
old_status: Option<PackageStatus>,
new_status: PackageStatus,
added_features: BTreeSet<&'a str>,
removed_features: BTreeSet<&'a str>,
unchanged_features: BTreeSet<&'a str>,
},
}
Expand description
The diff status for a particular summary ID and source.
Variants
This package was added.
Fields of Added
info: &'a PackageInfo
The information for this package.
This package was removed.
Fields of Removed
old_info: &'a PackageInfo
The information this package used to have.
Some details about the package changed:
- a feature was added or removed
- the version or source changed.
Fields of Modified
old_version: Option<&'a Version>
The old version of this package, if the version changed.
old_source: Option<&'a SummarySource>
The old source of this package, if the source changed.
old_status: Option<PackageStatus>
The old status of this package, if the status changed.
new_status: PackageStatus
The current status of this package.
added_features: BTreeSet<&'a str>
The set of features added to the package.
removed_features: BTreeSet<&'a str>
The set of features removed from the package.
unchanged_features: BTreeSet<&'a str>
The set of features which were enabled both in both the old and new summaries.
Implementations
Returns the tag for this status.
The tag is similar to this enum, except it has no associated data.
Returns the new package status if available, otherwise the old status.
Trait Implementations
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<'a> RefUnwindSafe for SummaryDiffStatus<'a>
impl<'a> Send for SummaryDiffStatus<'a>
impl<'a> Sync for SummaryDiffStatus<'a>
impl<'a> Unpin for SummaryDiffStatus<'a>
impl<'a> UnwindSafe for SummaryDiffStatus<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.