svix_webhook_with_clone/models/
application_patch.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 ApplicationPatch {
18                        #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
19                        pub metadata: Option<std::collections::HashMap<String, String>>,
20                        #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21                        pub name: Option<String>,
22                        #[serde(rename = "rateLimit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23                        pub rate_limit: Option<Option<i32>>,
24                        /// The app's UID
25                        #[serde(rename = "uid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26                        pub uid: Option<Option<String>>,
27                    }
28
29                    impl ApplicationPatch {
30                    pub fn new() -> ApplicationPatch {
31                ApplicationPatch {
32                    metadata: None,
33                    name: None,
34                    rate_limit: None,
35                    uid: None,
36                    }
37                    }
38                    }
39