Skip to main content

DisableApiKeyResponse

Type Alias DisableApiKeyResponse 

Source
pub type DisableApiKeyResponse = ApiKeyWithMetadata;
Expand description

Response when disabling an API key.

Returns the API key metadata, now including the disabled timestamp.

Aliased Type§

pub struct DisableApiKeyResponse {
    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.