pub enum SlaStatus {
Overdue(i64),
DueSoon(i64),
OnTrack(i64),
NoDueDate,
}Expand description
SLA status for vulnerability remediation tracking
Variants§
Overdue(i64)
Past SLA deadline by N days
DueSoon(i64)
Due within 3 days (N days remaining)
OnTrack(i64)
Within SLA window (N days remaining)
NoDueDate
No SLA deadline applicable
Implementations§
Source§impl SlaStatus
impl SlaStatus
Sourcepub fn display(&self, days_since_published: Option<i64>) -> String
pub fn display(&self, days_since_published: Option<i64>) -> String
Format for display (e.g., “3d late”, “2d left”, “45d old”)
Sourcepub const fn is_overdue(&self) -> bool
pub const fn is_overdue(&self) -> bool
Check if this is an overdue status
Sourcepub const fn is_due_soon(&self) -> bool
pub const fn is_due_soon(&self) -> bool
Check if this is due soon (approaching deadline)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlaStatus
impl<'de> Deserialize<'de> for SlaStatus
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
impl Copy for SlaStatus
impl Eq for SlaStatus
impl StructuralPartialEq for SlaStatus
Auto Trait Implementations§
impl Freeze for SlaStatus
impl RefUnwindSafe for SlaStatus
impl Send for SlaStatus
impl Sync for SlaStatus
impl Unpin for SlaStatus
impl UnsafeUnpin for SlaStatus
impl UnwindSafe for SlaStatus
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,
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.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