pub struct KeyMetadata {
pub id: KeyId,
pub base_id: KeyId,
pub state: KeyState,
pub created_at: SystemTime,
pub expires_at: Option<SystemTime>,
pub algorithm: Algorithm,
pub version: u32,
}Expand description
Metadata about a key
Fields§
§id: KeyIdUnique identifier for the key
base_id: KeyIdBase identifier for the key
state: KeyStateCurrent state in the key lifecycle
created_at: SystemTimeWhen this key was created
expires_at: Option<SystemTime>When this key expires (if applicable)
algorithm: AlgorithmAlgorithm this key is used with
version: u32Version number for rotation tracking
Trait Implementations§
Source§impl Clone for KeyMetadata
impl Clone for KeyMetadata
Source§fn clone(&self) -> KeyMetadata
fn clone(&self) -> KeyMetadata
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 KeyMetadata
impl Debug for KeyMetadata
Source§impl<'de> Deserialize<'de> for KeyMetadata
impl<'de> Deserialize<'de> for KeyMetadata
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 KeyMetadata
impl RefUnwindSafe for KeyMetadata
impl Send for KeyMetadata
impl Sync for KeyMetadata
impl Unpin for KeyMetadata
impl UnwindSafe for KeyMetadata
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