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 Directory {
    /// Distinguishes the Directory object.
    pub object: String,
    /// Unique identifier for the Directory.
    pub id: String,
    /// The unique identifier for the Organization in which the directory resides.
    pub organization_id: String,
    /// External Key for the Directory.
    pub external_key: String,
    /// The type of external Directory Provider integrated with.
    #[serde(rename = "type")]
    pub type_: DirectoryType,
    /// Describes whether the Directory has been successfully connected to an external provider.
    pub state: DirectoryState,
    /// The name of the directory.
    pub name: String,
    /// The URL associated with an Enterprise Client.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub domain: Option<String>,
    /// Aggregate counts of directory users and groups synced from the provider.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub metadata: Option<DirectoryMetadata>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}