1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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 PipesAccountConnectionConnectionFailedData {
/// 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 best-effort identifier for the provider account involved in the attempt. It is not a connection identifier or selector. Historical events may omit this field.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub account_identifier: 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,
}