workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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>>,
}