svix_webhook_with_clone/models/
endpoint_updated_event.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            /// EndpointUpdatedEvent : Sent when an endpoint is updated.
17                #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18                pub struct EndpointUpdatedEvent {
19                        #[serde(rename = "data")]
20                        pub data: Box<models::EndpointUpdatedEventData>,
21                        #[serde(rename = "type")]
22                        pub r#type: Type,
23                    }
24
25                    impl EndpointUpdatedEvent {
26                        /// Sent when an endpoint is updated.
27                    pub fn new(data: models::EndpointUpdatedEventData, r#type: Type) -> EndpointUpdatedEvent {
28                EndpointUpdatedEvent {
29                    data: Box::new(data),
30                    r#type,
31                    }
32                    }
33                    }
34                    /// 
35                    #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36                    pub enum Type {
37                            #[serde(rename = "endpoint.updated")]
38                        EndpointPeriodUpdated,
39                    }
40
41                    impl Default for Type {
42                    fn default() -> Type {
43                        Self::EndpointPeriodUpdated
44                    }
45                    }
46