svix_webhook_with_clone/models/
message_attempt_failed_data.rs

1/*
2 * Svix API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.1.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[allow(unused_imports)]
12use crate::models;
13#[allow(unused_imports)]
14use serde::{Deserialize, Serialize};
15        
16                #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17                pub struct MessageAttemptFailedData {
18                        /// The attempt's ID
19                        #[serde(rename = "id")]
20                        pub id: String,
21                        #[serde(rename = "responseStatusCode")]
22                        pub response_status_code: i32,
23                        #[serde(rename = "timestamp")]
24                        pub timestamp: String,
25                    }
26
27                    impl MessageAttemptFailedData {
28                    pub fn new(id: String, response_status_code: i32, timestamp: String) -> MessageAttemptFailedData {
29                MessageAttemptFailedData {
30                    id,
31                    response_status_code,
32                    timestamp,
33                    }
34                    }
35                    }
36