pub struct MintedApiKey {
pub plaintext: String,
pub prefix: String,
pub hash: String,
}Expand description
A freshly minted key. The plaintext is shown to the operator exactly once
and is NEVER stored — only its hash (and prefix) are persisted.
Fields§
§plaintext: StringThe full secret to hand to the caller once: {prefix}_{base64url-random}.
prefix: StringThe human-readable label prefix (e.g. "sk_live"), stored for display.
hash: StringHex SHA-256 of the full plaintext — the value to persist and index on.
Auto Trait Implementations§
impl Freeze for MintedApiKey
impl RefUnwindSafe for MintedApiKey
impl Send for MintedApiKey
impl Sync for MintedApiKey
impl Unpin for MintedApiKey
impl UnsafeUnpin for MintedApiKey
impl UnwindSafe for MintedApiKey
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