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 ConnectedAccountDto {
    /// The OAuth access token for the connected account.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub access_token: Option<crate::SecretString>,
    /// The OAuth refresh token for the connected account.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub refresh_token: Option<crate::SecretString>,
    /// The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub expires_at: Option<String>,
    /// The OAuth scopes granted for this connection.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scopes: Option<Vec<String>>,
    /// Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub state: Option<ConnectedAccountState>,
}