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};
/// The event payload.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ConnectionActivatedData {
    /// Distinguishes the connection object.
    pub object: String,
    /// Unique identifier of the connection.
    pub id: String,
    /// The current state of the connection.
    pub state: ConnectionActivatedDataState,
    /// The name of the connection.
    pub name: String,
    /// The type of the connection.
    pub connection_type: ConnectionActivatedDataConnectionType,
    /// The ID of the organization the connection belongs to.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
    /// The external key of the connection.
    pub external_key: String,
    /// Deprecated. Use state instead.
    pub status: ConnectionActivatedDataStatus,
    /// The domains associated with the connection.
    pub domains: Vec<ConnectionActivatedDataDomain>,
}