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 Connection {
    /// Distinguishes the Connection object.
    pub object: String,
    /// Unique identifier for the Connection.
    pub id: String,
    /// Unique identifier for the Organization in which the Connection resides.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// The type of the SSO Connection used to authenticate the user. The Connection type may be used to dynamically generate authorization URLs.
    pub connection_type: ConnectionType,
    /// A human-readable name for the Connection. This will most commonly be the organization's name.
    pub name: String,
    /// Indicates whether a Connection is able to authenticate users.
    pub state: ConnectionState,
    /// Deprecated. Use `state` instead.
    #[deprecated]
    pub status: ConnectionStatus,
    /// List of Organization Domains.
    pub domains: Vec<ConnectionDomain>,
    /// Configuration options for SAML connections. Only present for SAML connection types.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub options: Option<ConnectionOption>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}