// Code generated by oagen. DO NOT EDIT.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UserApiKey {
/// Distinguishes the API Key object.
pub object: String,
/// Unique identifier of the API Key.
pub id: String,
/// The entity that owns the API Key.
pub owner: UserApiKeyOwner,
/// A descriptive name for the API Key.
pub name: String,
/// An obfuscated representation of the API Key value.
pub obfuscated_value: String,
/// Timestamp of when the API Key was last used.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub last_used_at: Option<String>,
/// The permission slugs assigned to the API Key.
pub permissions: Vec<String>,
/// An ISO 8601 timestamp.
pub created_at: String,
/// An ISO 8601 timestamp.
pub updated_at: String,
}