pub struct ApiKeyResponse {
pub id: Uuid,
pub name: String,
pub key_prefix: String,
pub scopes: Vec<ApiKeyScope>,
pub is_active: bool,
pub expires_at: Option<DateTime<Utc>>,
pub last_used_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
}Expand description
API key summary (never includes the hash or raw key).
Fields§
§id: UuidAPI key ID.
name: StringKey name.
key_prefix: StringFirst characters for identification.
scopes: Vec<ApiKeyScope>Granted scopes.
is_active: boolWhether the key is active.
expires_at: Option<DateTime<Utc>>Expiration date.
last_used_at: Option<DateTime<Utc>>Last used date.
created_at: DateTime<Utc>Creation date.
Trait Implementations§
Source§impl Debug for ApiKeyResponse
impl Debug for ApiKeyResponse
Auto Trait Implementations§
impl Freeze for ApiKeyResponse
impl RefUnwindSafe for ApiKeyResponse
impl Send for ApiKeyResponse
impl Sync for ApiKeyResponse
impl Unpin for ApiKeyResponse
impl UnsafeUnpin for ApiKeyResponse
impl UnwindSafe for ApiKeyResponse
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