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 DataIntegrationAccessTokenResponse {
    /// Indicates whether the access token is valid and ready for use, or if reauthorization is required.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub active: Option<bool>,
    /// The [access token](https://workos.com/docs/reference/pipes/access-token) object, present when `active` is `true`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub access_token: Option<DataIntegrationAccessTokenResponseAccessToken>,
    /// - `"not_installed"`: The user does not have the integration installed.
    /// - `"needs_reauthorization"`: The user needs to reauthorize the integration.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error: Option<DataIntegrationAccessTokenResponseError>,
}