svix_webhook_with_clone/models/
application_out.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 ApplicationOut {
18                        #[serde(rename = "createdAt")]
19                        pub created_at: String,
20                        /// The app's ID
21                        #[serde(rename = "id")]
22                        pub id: String,
23                        #[serde(rename = "metadata")]
24                        pub metadata: std::collections::HashMap<String, String>,
25                        #[serde(rename = "name")]
26                        pub name: String,
27                        #[serde(rename = "rateLimit", skip_serializing_if = "Option::is_none")]
28                        pub rate_limit: Option<i32>,
29                        /// The app's UID
30                        #[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
31                        pub uid: Option<String>,
32                        #[serde(rename = "updatedAt")]
33                        pub updated_at: String,
34                    }
35
36                    impl ApplicationOut {
37                    pub fn new(created_at: String, id: String, metadata: std::collections::HashMap<String, String>, name: String, updated_at: String) -> ApplicationOut {
38                ApplicationOut {
39                    created_at,
40                    id,
41                    metadata,
42                    name,
43                    rate_limit: None,
44                    uid: None,
45                    updated_at,
46                    }
47                    }
48                    }
49