workos 3.4.1

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 DataIntegrationsListResponseData {
    /// Distinguishes the data provider object.
    pub object: String,
    /// The unique identifier of the provider.
    pub id: String,
    /// The display name of the provider (e.g., "GitHub", "Slack").
    pub name: String,
    /// A description of the provider explaining how it will be used, if configured.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// The slug identifier used in API calls (e.g., `github`, `slack`, `notion`).
    pub slug: String,
    /// The type of integration (e.g., `github`, `slack`).
    pub integration_type: String,
    /// The type of credentials used by the provider (e.g., `oauth2`).
    pub credentials_type: String,
    /// The OAuth scopes configured for this provider, or `null` if none are configured.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scopes: Option<Vec<String>>,
    /// The authentication methods supported by this provider (`oauth`, `api_key`, `client_credentials`, or a combination). Defaults to `["oauth"]` if absent.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub auth_methods: Option<Vec<DataIntegrationsListResponseDataAuthMethods>>,
    /// Who owns connections made through this provider: `user` for connections owned by individual users, or `organization` for a connection shared by every member of the organization. A provider row can exist before any connected account does.
    pub connection_owner: DataIntegrationsListResponseDataConnectionOwner,
    /// Use `connection_owner` instead. Legacy spelling of the same value: `userland_user` corresponds to `connection_owner: "user"` and `organization` to `connection_owner: "organization"`.
    #[deprecated]
    pub ownership: DataIntegrationsListResponseDataOwnership,
    /// The timestamp when the provider was created.
    pub created_at: String,
    /// The timestamp when the provider was last updated.
    pub updated_at: String,
    /// Use integration_type instead.
    #[serde(rename = "integrationType")]
    #[deprecated]
    pub integration_type_2: String,
    /// Use credentials_type instead.
    #[serde(rename = "credentialsType")]
    #[deprecated]
    pub credentials_type_2: String,
    /// Use created_at instead.
    #[serde(rename = "createdAt")]
    #[deprecated]
    pub created_at_2: String,
    /// Use updated_at instead.
    #[serde(rename = "updatedAt")]
    #[deprecated]
    pub updated_at_2: String,
    /// The user's compatibility [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub connected_account: Option<DataIntegrationsListResponseDataConnectedAccount>,
    /// The user's connected accounts for this provider in the requested ownership context. This contains only the compatibility connection unless `supports_multiple_connections` is `true`.
    pub connected_accounts: Vec<DataIntegrationsListResponseDataConnectedAccount>,
}