pub enum KeyState {
Active,
DecryptOnly,
Revoked,
Retired,
}Expand description
Lifecycle states for SecretStore encryption keys.
Variants§
Active
Active encryption key used for both encrypt and decrypt operations.
DecryptOnly
Legacy key retained only for decryption during or after rotation.
Revoked
Key revoked from further use because it should no longer decrypt data.
Retired
Key retired after all encrypted payloads were migrated away from it.
Implementations§
Source§impl KeyState
impl KeyState
Sourcepub fn from_str_value(s: &str) -> Result<Self>
pub fn from_str_value(s: &str) -> Result<Self>
Parses a persisted key-state label.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true when the state should never be used for encryption or decryption again.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyState
impl<'de> Deserialize<'de> for KeyState
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 Copy for KeyState
impl Eq for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnsafeUnpin for KeyState
impl UnwindSafe for KeyState
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<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§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.