pub struct ApiKey {
pub key_hash: String,
pub name: String,
pub user_id: String,
pub scopes: Vec<String>,
pub created_at: String,
}Expand description
An API key with scoped permissions.
The raw key is never stored. Only the hash is retained after creation.
Fields§
§key_hash: String§name: String§user_id: String§scopes: Vec<String>§created_at: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin 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