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 AuthorizationResource {
    /// Distinguishes the Resource object.
    pub object: String,
    /// A human-readable name for the Resource.
    pub name: String,
    /// An optional description of the Resource.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// The ID of the organization that owns the resource.
    pub organization_id: String,
    /// The ID of the parent resource, if this resource is nested.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub parent_resource_id: Option<String>,
    /// The unique ID of the Resource.
    pub id: String,
    /// An identifier you provide to reference the resource in your system.
    pub external_id: String,
    /// The slug of the resource type this resource belongs to.
    pub resource_type_slug: String,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}