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 CreateAuthorizationPermission {
    /// A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks.
    pub slug: String,
    /// A descriptive name for the Permission.
    pub name: String,
    /// An optional description of the Permission.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// The slug of the resource type this permission is scoped to.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub resource_type_slug: Option<String>,
}