pub struct RotationPolicy {
pub max_key_age: Duration,
pub max_usage_count: u64,
pub triggers: HashSet<RotationTrigger>,
pub notification_time: Duration,
pub emergency_rotation: bool,
}Expand description
Key rotation policy
Fieldsยง
ยงmax_key_age: DurationMaximum key age before forced rotation
max_usage_count: u64Maximum usage count before rotation
triggers: HashSet<RotationTrigger>Rotation trigger conditions
notification_time: DurationPre-rotation notification time
emergency_rotation: boolEmergency rotation capability
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 Default for RotationPolicy
impl Default 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 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