pub enum RotationPolicy {
Manual,
Quarterly,
Yearly,
Never,
}Variants§
Manual
cofre apply never auto-rotates this secret. Operator must
explicitly invoke cofre apply --rotate <path>.
Quarterly
cofre plan flags this secret as overdue once 90 days have
elapsed since last materialization (per the inventory).
Yearly
cofre plan flags this secret as overdue once 365 days have
elapsed.
Never
Root-of-trust material that should NEVER be rotated by cofre.
cofre apply --rotate against a Never-marked secret refuses.
Implementations§
Source§impl RotationPolicy
impl RotationPolicy
Sourcepub fn overdue_after_days(self) -> Option<u32>
pub fn overdue_after_days(self) -> Option<u32>
Days after materialization beyond which cofre plan flags this
secret as overdue. None means never overdue (Manual / Never).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RotationPolicy
Source§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
impl Eq for RotationPolicy
Source§impl Hash for RotationPolicy
impl Hash for RotationPolicy
Source§impl PartialEq for RotationPolicy
impl PartialEq for RotationPolicy
Source§impl Serialize for RotationPolicy
impl Serialize for RotationPolicy
impl StructuralPartialEq for RotationPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.