workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
// 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 UserApiKeyWithValue {
    /// 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: UserApiKeyWithValueOwner,
    /// 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,
    /// The full API Key value. Only returned once at creation time.
    pub value: String,
}