pub struct ApiKey {Show 15 fields
pub key_type: Option<String>,
pub api_key_id: String,
pub prefix: Option<String>,
pub name: Option<String>,
pub pod_id: Option<String>,
pub inbox_id: Option<String>,
pub client_id: Option<String>,
pub public_key: Option<PublicKeyMaterial>,
pub status: Option<String>,
pub used_at: Option<String>,
pub permissions: Option<ApiKeyPermissions>,
pub created_by: Option<ApiKeyCreator>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub expires_at: Option<String>,
}Expand description
An API key, as the API returns it. The wire shape is a oneOf over bearer
keys and public_key credentials; every field defaults so both parse.
The secret material itself is never returned here (see CreatedApiKey).
Fields§
§key_type: Option<String>bearer or public_key.
api_key_id: StringUnique key id.
prefix: Option<String>The key’s non-secret prefix, for identification.
name: Option<String>Human-readable name.
pod_id: Option<String>The pod the key is scoped to, when applicable.
inbox_id: Option<String>The inbox the key is scoped to, when applicable.
client_id: Option<String>Your reference id, for public_key credentials.
public_key: Option<PublicKeyMaterial>Public-key material, for public_key credentials.
status: Option<String>Registration state of a public_key credential: pending or active.
used_at: Option<String>When the key was last used (RFC 3339).
permissions: Option<ApiKeyPermissions>The key’s permissions.
created_by: Option<ApiKeyCreator>The key that created this one, for public_key credentials.
created_at: Option<String>When the key was created (RFC 3339).
updated_at: Option<String>When the key was last updated (RFC 3339).
expires_at: Option<String>When the key stops working (RFC 3339), when it expires.