workos 2.0.1

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 CreateUserApiKey {
    /// A descriptive name for the API key.
    pub name: String,
    /// The ID of the organization the user API key is associated with. The user must have an active membership in this organization.
    pub organization_id: String,
    /// The permission slugs to assign to the API key. Each permission must be enabled for user API keys.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub permissions: Option<Vec<String>>,
    /// The timestamp when the API key should expire. Must be a future timestamp. If omitted, the key does not expire.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub expires_at: Option<String>,
}