pub enum UpdateRequirement {
UpToDate,
SemverSafeUpdate,
UpdatePossible,
}
Expand description
What kind of update, if any, is required for a package
Variants§
UpToDate
No update is required
SemverSafeUpdate
An update is required but it is semver-compatible to the version in use
UpdatePossible
An update is required to a version that is not semver-compatible
Trait Implementations§
source§impl Debug for UpdateRequirement
impl Debug for UpdateRequirement
source§impl<'de> Deserialize<'de> for UpdateRequirement
impl<'de> Deserialize<'de> for UpdateRequirement
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UpdateRequirement
impl Display for UpdateRequirement
source§impl Ord for UpdateRequirement
impl Ord for UpdateRequirement
source§fn cmp(&self, other: &UpdateRequirement) -> Ordering
fn cmp(&self, other: &UpdateRequirement) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for UpdateRequirement
impl PartialEq for UpdateRequirement
source§fn eq(&self, other: &UpdateRequirement) -> bool
fn eq(&self, other: &UpdateRequirement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UpdateRequirement
impl PartialOrd for UpdateRequirement
source§fn partial_cmp(&self, other: &UpdateRequirement) -> Option<Ordering>
fn partial_cmp(&self, other: &UpdateRequirement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for UpdateRequirement
impl Serialize for UpdateRequirement
impl Eq for UpdateRequirement
impl StructuralPartialEq for UpdateRequirement
Auto Trait Implementations§
impl RefUnwindSafe for UpdateRequirement
impl Send for UpdateRequirement
impl Sync for UpdateRequirement
impl Unpin for UpdateRequirement
impl UnwindSafe for UpdateRequirement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more