#[non_exhaustive]pub struct OutdatedPackage {
pub full_name: String,
pub installed: SemVer,
pub latest: SemVer,
}Expand description
An installed package the index has a newer version of.
#[non_exhaustive]: fields may be added, so downstream code cannot
construct or exhaustively destructure this directly.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.full_name: StringThe package’s Owner-Name identifier.
installed: SemVerThe version recorded as installed.
latest: SemVerThe index’s most recently published version.
Trait Implementations§
Source§impl Clone for OutdatedPackage
impl Clone for OutdatedPackage
Source§impl Debug for OutdatedPackage
impl Debug for OutdatedPackage
impl Eq for OutdatedPackage
Source§impl PartialEq for OutdatedPackage
impl PartialEq for OutdatedPackage
impl StructuralPartialEq for OutdatedPackage
Auto Trait Implementations§
impl Forget for OutdatedPackage
impl Freeze for OutdatedPackage
impl Move for OutdatedPackage
impl RefUnwindSafe for OutdatedPackage
impl Send for OutdatedPackage
impl Sync for OutdatedPackage
impl Unpin for OutdatedPackage
impl UnsafeUnpin for OutdatedPackage
impl UnwindSafe for OutdatedPackage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.