workos 3.1.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};
/// The event payload.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PipesConnectedAccountConnectionFailedData {
    /// The object type.
    pub object: String,
    /// The unique ID of the data integration.
    pub data_integration_id: String,
    /// The provider slug for this connection attempt.
    pub provider_slug: String,
    /// The ID of the User the connection attempt belongs to.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_id: Option<String>,
    /// The ID of the Organization the connection attempt belongs to.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// A machine-readable error code for the failure.
    pub error_code: String,
    /// A human-readable explanation of the failure.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error_reason: Option<String>,
    /// The raw error code returned by the OAuth provider.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub provider_error: Option<String>,
    /// The raw error description returned by the OAuth provider.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub provider_error_description: Option<String>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
}