fusionauth_rust_client/models/
webhook_attempt_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.57.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// WebhookAttemptLog : A webhook call attempt log.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookAttemptLog {
17    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
20    #[serde(rename = "endInstant", skip_serializing_if = "Option::is_none")]
21    pub end_instant: Option<i64>,
22    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
23    pub id: Option<uuid::Uuid>,
24    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
25    #[serde(rename = "startInstant", skip_serializing_if = "Option::is_none")]
26    pub start_instant: Option<i64>,
27    #[serde(rename = "webhookCallResponse", skip_serializing_if = "Option::is_none")]
28    pub webhook_call_response: Option<Box<models::WebhookCallResponse>>,
29    #[serde(rename = "webhookEventLogId", skip_serializing_if = "Option::is_none")]
30    pub webhook_event_log_id: Option<uuid::Uuid>,
31    #[serde(rename = "webhookId", skip_serializing_if = "Option::is_none")]
32    pub webhook_id: Option<uuid::Uuid>,
33    #[serde(rename = "attemptResult", skip_serializing_if = "Option::is_none")]
34    pub attempt_result: Option<models::WebhookAttemptResult>,
35}
36
37impl WebhookAttemptLog {
38    /// A webhook call attempt log.
39    pub fn new() -> WebhookAttemptLog {
40        WebhookAttemptLog {
41            data: None,
42            end_instant: None,
43            id: None,
44            start_instant: None,
45            webhook_call_response: None,
46            webhook_event_log_id: None,
47            webhook_id: None,
48            attempt_result: None,
49        }
50    }
51}
52