pub struct RotationEvent {
pub old_key_id: String,
pub new_key_id: String,
pub reason: RotationReason,
pub rotated_at: Instant,
pub old_key_encryptions: u64,
}Expand description
Record of a single key rotation event.
Fields§
§old_key_id: StringID of the old (retired) key.
new_key_id: StringID of the new (active) key.
reason: RotationReasonReason for rotation.
rotated_at: InstantTimestamp of the rotation (monotonic).
old_key_encryptions: u64Number of encryptions performed with the old key.
Trait Implementations§
Source§impl Clone for RotationEvent
impl Clone for RotationEvent
Source§fn clone(&self) -> RotationEvent
fn clone(&self) -> RotationEvent
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 moreAuto Trait Implementations§
impl Freeze for RotationEvent
impl RefUnwindSafe for RotationEvent
impl Send for RotationEvent
impl Sync for RotationEvent
impl Unpin for RotationEvent
impl UnsafeUnpin for RotationEvent
impl UnwindSafe for RotationEvent
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 more