pub struct StalenessInfo {
pub level: StalenessLevel,
pub last_published: Option<DateTime<Utc>>,
pub is_deprecated: bool,
pub is_archived: bool,
pub deprecation_message: Option<String>,
pub days_since_update: Option<u32>,
pub latest_version: Option<String>,
}Expand description
Staleness information for a component
Fields§
§level: StalenessLevelStaleness classification
last_published: Option<DateTime<Utc>>Last publish/release date
is_deprecated: boolWhether explicitly deprecated by maintainer
is_archived: boolWhether repository/package is archived
deprecation_message: Option<String>Deprecation message if available
days_since_update: Option<u32>Days since last update
latest_version: Option<String>Latest available version (if different from current)
Implementations§
Source§impl StalenessInfo
impl StalenessInfo
Sourcepub const fn new(level: StalenessLevel) -> Self
pub const fn new(level: StalenessLevel) -> Self
Create new staleness info
Sourcepub const fn needs_attention(&self) -> bool
pub const fn needs_attention(&self) -> bool
Check if component needs attention (stale or worse)
Trait Implementations§
Source§impl Clone for StalenessInfo
impl Clone for StalenessInfo
Source§fn clone(&self) -> StalenessInfo
fn clone(&self) -> StalenessInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StalenessInfo
impl Debug for StalenessInfo
Source§impl<'de> Deserialize<'de> for StalenessInfo
impl<'de> Deserialize<'de> for StalenessInfo
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
Auto Trait Implementations§
impl Freeze for StalenessInfo
impl RefUnwindSafe for StalenessInfo
impl Send for StalenessInfo
impl Sync for StalenessInfo
impl Unpin for StalenessInfo
impl UnsafeUnpin for StalenessInfo
impl UnwindSafe for StalenessInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more