pub struct ApiKey {
pub id: String,
pub label: String,
pub created_at: u64,
/* private fields */
}Expand description
Safe public metadata for an independently revocable API credential. The owner, credential generation and salted verifier stay private.
Fields§
§id: StringOpaque public identifier; this alone never authenticates a client.
label: StringUser-supplied description, preserving its original spelling.
created_at: u64Creation time in Unix seconds.
Trait Implementations§
impl Eq for ApiKey
impl StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnwindSafe for ApiKey
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