pub struct CreateApiKeyResponse {
pub id: Uuid,
pub key: String,
pub key_prefix: String,
pub name: String,
pub scopes: Vec<ApiKeyScope>,
pub expires_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
}Expand description
Response returned when creating an API key. The raw key is only shown once.
Fields§
§id: UuidAPI key ID.
key: StringThe full raw API key (only returned at creation time).
key_prefix: StringFirst characters for identification.
name: StringKey name.
scopes: Vec<ApiKeyScope>Granted scopes.
expires_at: Option<DateTime<Utc>>Expiration date.
created_at: DateTime<Utc>Creation date.
Trait Implementations§
Source§impl Debug for CreateApiKeyResponse
impl Debug for CreateApiKeyResponse
Auto Trait Implementations§
impl Freeze for CreateApiKeyResponse
impl RefUnwindSafe for CreateApiKeyResponse
impl Send for CreateApiKeyResponse
impl Sync for CreateApiKeyResponse
impl Unpin for CreateApiKeyResponse
impl UnsafeUnpin for CreateApiKeyResponse
impl UnwindSafe for CreateApiKeyResponse
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