pub struct RotationPolicy {
pub enabled: bool,
pub rotation_period_days: u32,
pub last_rotation: Option<i64>,
pub next_rotation: Option<i64>,
}Expand description
Key rotation configuration.
Fields§
§enabled: boolWhether automatic rotation is enabled
rotation_period_days: u32Days between rotations
last_rotation: Option<i64>When key was last rotated (Unix timestamp, None if never)
next_rotation: Option<i64>When key will next be rotated (Unix timestamp, None if not scheduled)
Implementations§
Trait Implementations§
Source§impl Clone for RotationPolicy
impl Clone for RotationPolicy
Source§fn clone(&self) -> RotationPolicy
fn clone(&self) -> RotationPolicy
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 RotationPolicy
impl Debug for RotationPolicy
Source§impl<'de> Deserialize<'de> for RotationPolicy
impl<'de> Deserialize<'de> for RotationPolicy
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 RotationPolicy
impl RefUnwindSafe for RotationPolicy
impl Send for RotationPolicy
impl Sync for RotationPolicy
impl Unpin for RotationPolicy
impl UnsafeUnpin for RotationPolicy
impl UnwindSafe for RotationPolicy
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