svix_webhook_with_clone/models/
operational_webhook_endpoint_out.rs1#[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 OperationalWebhookEndpointOut {
18 #[serde(rename = "createdAt")]
19 pub created_at: String,
20 #[serde(rename = "description")]
22 pub description: String,
23 #[serde(rename = "disabled", skip_serializing_if = "Option::is_none")]
24 pub disabled: Option<bool>,
25 #[serde(rename = "filterTypes", skip_serializing_if = "Option::is_none")]
26 pub filter_types: Option<Vec<String>>,
27 #[serde(rename = "id")]
29 pub id: String,
30 #[serde(rename = "metadata")]
31 pub metadata: std::collections::HashMap<String, String>,
32 #[serde(rename = "rateLimit", skip_serializing_if = "Option::is_none")]
33 pub rate_limit: Option<i32>,
34 #[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
36 pub uid: Option<String>,
37 #[serde(rename = "updatedAt")]
38 pub updated_at: String,
39 #[serde(rename = "url")]
40 pub url: String,
41 }
42
43 impl OperationalWebhookEndpointOut {
44 pub fn new(created_at: String, description: String, id: String, metadata: std::collections::HashMap<String, String>, updated_at: String, url: String) -> OperationalWebhookEndpointOut {
45 OperationalWebhookEndpointOut {
46 created_at,
47 description,
48 disabled: None,
49 filter_types: None,
50 id,
51 metadata,
52 rate_limit: None,
53 uid: None,
54 updated_at,
55 url,
56 }
57 }
58 }
59