workos 2.4.0

Official Rust SDK for the WorkOS API
Documentation
// This file is auto-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 DataIntegration {
    /// Distinguishes the Data Integration object.
    pub object: String,
    /// Unique identifier of the Data Integration.
    pub id: String,
    /// The provider slug for this Data Integration.
    pub slug: String,
    /// The integration type derived from the provider.
    pub integration_type: String,
    /// An optional description of the Data Integration.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// Whether the Data Integration is enabled.
    pub enabled: bool,
    /// The state of the Data Integration.
    pub state: DataIntegrationState,
    /// The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scopes: Option<Vec<String>>,
    /// The OAuth redirect URI to register with the provider when configuring the custom application.
    pub redirect_uri: String,
    /// The credentials configured for the Data Integration.
    pub credentials: DataIntegrationCredential,
    /// The OAuth definition when this is a custom provider; `null` for built-in providers.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub custom_provider: Option<DataIntegrationCustomProvider>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}