pub struct RotationStatusResponse {
pub current_version: u16,
pub ttl_days: u32,
pub last_rotation: Option<DateTime<Utc>>,
pub next_rotation: Option<DateTime<Utc>>,
pub status: RotationStatus,
pub auto_refresh_enabled: bool,
pub versions_total: usize,
pub versions_active: usize,
pub versions_expired: usize,
pub last_rotation_duration_ms: u64,
pub auto_refresh_checks: u64,
}Expand description
Rotation status response
Fields§
§current_version: u16Current active version number
ttl_days: u32TTL for each version in days
last_rotation: Option<DateTime<Utc>>Last rotation timestamp
next_rotation: Option<DateTime<Utc>>Estimated next rotation time
status: RotationStatusCurrent status level
auto_refresh_enabled: boolIs automatic refresh enabled
versions_total: usizeTotal versions for this key
versions_active: usizeActive versions count
versions_expired: usizeExpired versions count
last_rotation_duration_ms: u64Last rotation duration in milliseconds
auto_refresh_checks: u64Total auto-refresh checks performed
Implementations§
Source§impl RotationStatusResponse
impl RotationStatusResponse
Sourcepub fn with_last_rotation(self, timestamp: DateTime<Utc>) -> Self
pub fn with_last_rotation(self, timestamp: DateTime<Utc>) -> Self
Set last rotation timestamp
Sourcepub fn with_next_rotation(self, timestamp: DateTime<Utc>) -> Self
pub fn with_next_rotation(self, timestamp: DateTime<Utc>) -> Self
Set next rotation timestamp
Sourcepub fn with_status(self, status: RotationStatus) -> Self
pub fn with_status(self, status: RotationStatus) -> Self
Set status level
Source§impl RotationStatusResponse
impl RotationStatusResponse
Sourcepub fn to_display(&self) -> RotationStatusDisplay
pub fn to_display(&self) -> RotationStatusDisplay
Convert to display with urgency
Trait Implementations§
Source§impl Clone for RotationStatusResponse
impl Clone for RotationStatusResponse
Source§fn clone(&self) -> RotationStatusResponse
fn clone(&self) -> RotationStatusResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 RotationStatusResponse
impl Debug for RotationStatusResponse
Source§impl<'de> Deserialize<'de> for RotationStatusResponse
impl<'de> Deserialize<'de> for RotationStatusResponse
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 RotationStatusResponse
impl RefUnwindSafe for RotationStatusResponse
impl Send for RotationStatusResponse
impl Sync for RotationStatusResponse
impl Unpin for RotationStatusResponse
impl UnwindSafe for RotationStatusResponse
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<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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request