pub struct EncryptionKey {
pub info: KeyInfo,
/* private fields */
}Expand description
Encryption key with metadata.
Wraps KeyMaterial from rivven-core::crypto for the raw key bytes
and KeyInfo for metadata. Key material is zeroized on drop via
the KeyMaterial implementation.
Fields§
§info: KeyInfoKey metadata (id, version, created_at, active)
Implementations§
Source§impl EncryptionKey
impl EncryptionKey
Sourcepub fn created_at(&self) -> u64
pub fn created_at(&self) -> u64
Creation timestamp (convenience accessor)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncryptionKey
impl RefUnwindSafe for EncryptionKey
impl Send for EncryptionKey
impl Sync for EncryptionKey
impl Unpin for EncryptionKey
impl UnsafeUnpin for EncryptionKey
impl UnwindSafe for EncryptionKey
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