pub enum ExpiryWarningKind {
ExpiringSoon {
expires_at: String,
days_remaining: i64,
},
Expired {
expires_at: String,
days_overdue: i64,
},
RotationDueSoon {
last_rotated_at: String,
rotate_every_days: u32,
days_remaining: i64,
},
RotationOverdue {
last_rotated_at: String,
rotate_every_days: u32,
days_overdue: i64,
},
}Expand description
Reason for an ExpiryWarning.
Variants§
ExpiringSoon
entry.expires_at is within WARNING_WINDOW_DAYS of
today.
Fields
Expired
entry.expires_at is in the past — the credential is
already expired.
Fields
RotationDueSoon
last_rotated_at + rotate_every_days is within
WARNING_WINDOW_DAYS of today — rotate soon.
Fields
RotationOverdue
Rotation schedule already overdue.
Trait Implementations§
Source§impl Clone for ExpiryWarningKind
impl Clone for ExpiryWarningKind
Source§fn clone(&self) -> ExpiryWarningKind
fn clone(&self) -> ExpiryWarningKind
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 ExpiryWarningKind
impl Debug for ExpiryWarningKind
Source§impl PartialEq for ExpiryWarningKind
impl PartialEq for ExpiryWarningKind
Source§fn eq(&self, other: &ExpiryWarningKind) -> bool
fn eq(&self, other: &ExpiryWarningKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExpiryWarningKind
impl StructuralPartialEq for ExpiryWarningKind
Auto Trait Implementations§
impl Freeze for ExpiryWarningKind
impl RefUnwindSafe for ExpiryWarningKind
impl Send for ExpiryWarningKind
impl Sync for ExpiryWarningKind
impl Unpin for ExpiryWarningKind
impl UnsafeUnpin for ExpiryWarningKind
impl UnwindSafe for ExpiryWarningKind
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§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.