pub struct KeyRotationPolicy {
pub max_age_days: u32,
pub mandatory: bool,
pub rotation_authority_did: Option<String>,
}Available on crate feature
governance only.Fields§
§max_age_days: u32§mandatory: boolImplementations§
Source§impl KeyRotationPolicy
impl KeyRotationPolicy
pub fn check(&self, issued_at_unix: u64, now_unix: u64) -> RotationStatus
Trait Implementations§
Source§impl Clone for KeyRotationPolicy
impl Clone for KeyRotationPolicy
Source§fn clone(&self) -> KeyRotationPolicy
fn clone(&self) -> KeyRotationPolicy
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 KeyRotationPolicy
impl Debug for KeyRotationPolicy
Source§impl Default for KeyRotationPolicy
impl Default for KeyRotationPolicy
Source§impl<'de> Deserialize<'de> for KeyRotationPolicy
impl<'de> Deserialize<'de> for KeyRotationPolicy
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 KeyRotationPolicy
impl RefUnwindSafe for KeyRotationPolicy
impl Send for KeyRotationPolicy
impl Sync for KeyRotationPolicy
impl Unpin for KeyRotationPolicy
impl UnsafeUnpin for KeyRotationPolicy
impl UnwindSafe for KeyRotationPolicy
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