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 DataIntegrationCredentialsResponse {
    /// Indicates credentials are available.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub active: Option<bool>,
    /// The credential object containing the vended secret.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub credential: Option<DataIntegrationCredentialsResponseCredential>,
    /// The reason credentials are unavailable. Additional values may be added in the future; handle unknown values gracefully.
    /// - `"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<DataIntegrationCredentialsResponseError>,
}