fusionauth_rust_client/models/
webhook_event_log.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.60.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebhookEventLog {
16    #[serde(rename = "attempts", skip_serializing_if = "Option::is_none")]
17    pub attempts: Option<Vec<models::WebhookAttemptLog>>,
18    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
19    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
20    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
21    pub event: Option<Box<models::EventRequest>>,
22    #[serde(rename = "eventResult", skip_serializing_if = "Option::is_none")]
23    pub event_result: Option<models::WebhookEventResult>,
24    #[serde(rename = "eventType", skip_serializing_if = "Option::is_none")]
25    pub event_type: Option<models::EventType>,
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<uuid::Uuid>,
28    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
29    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
30    pub insert_instant: Option<i64>,
31    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
32    #[serde(rename = "lastAttemptInstant", skip_serializing_if = "Option::is_none")]
33    pub last_attempt_instant: Option<i64>,
34    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
35    #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
36    pub last_update_instant: Option<i64>,
37    #[serde(rename = "linkedObjectId", skip_serializing_if = "Option::is_none")]
38    pub linked_object_id: Option<uuid::Uuid>,
39    #[serde(rename = "sequence", skip_serializing_if = "Option::is_none")]
40    pub sequence: Option<i64>,
41    #[serde(rename = "failedAttempts", skip_serializing_if = "Option::is_none")]
42    pub failed_attempts: Option<i32>,
43    #[serde(rename = "successfulAttempts", skip_serializing_if = "Option::is_none")]
44    pub successful_attempts: Option<i32>,
45}
46
47impl WebhookEventLog {
48    pub fn new() -> WebhookEventLog {
49        WebhookEventLog {
50            attempts: None,
51            data: None,
52            event: None,
53            event_result: None,
54            event_type: None,
55            id: None,
56            insert_instant: None,
57            last_attempt_instant: None,
58            last_update_instant: None,
59            linked_object_id: None,
60            sequence: None,
61            failed_attempts: None,
62            successful_attempts: None,
63        }
64    }
65}
66