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>,
        added_optional_deps: BTreeSet<&'a str>,
        removed_optional_deps: BTreeSet<&'a str>,
        unchanged_optional_deps: 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_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.

added_optional_deps: BTreeSet<&'a str>

The set of optional dependencies added to the package.

removed_optional_deps: BTreeSet<&'a str>

The set of optional dependencies removed from the package.

unchanged_optional_deps: BTreeSet<&'a str>

The set of optional dependencies enabled both in both the old and new summaries.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.