pub struct KeyEntry {
pub secret: StaticSecret,
pub key_id: String,
pub public_key_b64: String,
pub public_key_raw: [u8; 32],
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}Expand description
A single X25519 key pair entry managed by KeyStore.
Derives zeroize::ZeroizeOnDrop so that secret is guaranteed to be zeroed whenever
a KeyEntry is dropped — including when it is moved or replaced during key rotation —
regardless of whether the compiler relocated the struct in memory beforehand.
Fields§
§secret: StaticSecret§key_id: String§public_key_b64: String§public_key_raw: [u8; 32]§created_at: DateTime<Utc>§expires_at: DateTime<Utc>Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyEntry
impl RefUnwindSafe for KeyEntry
impl Send for KeyEntry
impl Sync for KeyEntry
impl Unpin for KeyEntry
impl UnsafeUnpin for KeyEntry
impl UnwindSafe for KeyEntry
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