Enum guppy_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
Added
Fields
info: &'a PackageInfo
The information for this package.
This package was added.
Removed
Fields
old_info: &'a PackageInfo
The information this package used to have.
This package was removed.
Modified
Fields
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.
Some details about the package changed:
- a feature was added or removed
- the version or source changed.
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 !=
.
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.