Skip to main content

CreateApiKeyResponse

Type Alias CreateApiKeyResponse 

Source
pub type CreateApiKeyResponse = ApiKeyWithMetadata;
Expand description

Response when creating a new API key.

Returns the complete API key with all associated metadata.

Aliased Type§

pub struct CreateApiKeyResponse {
    pub api_key: PrefixedUuid<'a', 'p', 'k'>,
    pub created: DateTime<Utc>,
    pub expires: Option<DateTime<Utc>>,
    pub disabled: Option<DateTime<Utc>>,
    pub name: String,
    pub description: Option<String>,
}

Fields§

§api_key: PrefixedUuid<'a', 'p', 'k'>

The API key itself.

§created: DateTime<Utc>

The timestamp when the API key was created (RFC 3339 format).

§expires: Option<DateTime<Utc>>

The timestamp when the API key expires, or None if it does not expire.

§disabled: Option<DateTime<Utc>>

The timestamp when the API key was disabled, or None if it is active.

§name: String

The user-provided name of the API key.

§description: Option<String>

The user-provided description of the API key, or None if not provided.