svix_webhook_with_clone/models/
endpoint_transformation_simulate_in.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 EndpointTransformationSimulateIn {
18                        #[serde(rename = "channels", skip_serializing_if = "Option::is_none")]
19                        pub channels: Option<Vec<String>>,
20                        #[serde(rename = "code")]
21                        pub code: String,
22                        /// The event type's name
23                        #[serde(rename = "eventType")]
24                        pub event_type: String,
25                        #[serde(rename = "payload")]
26                        pub payload: serde_json::Value,
27                    }
28
29                    impl EndpointTransformationSimulateIn {
30                    pub fn new(code: String, event_type: String, payload: serde_json::Value) -> EndpointTransformationSimulateIn {
31                EndpointTransformationSimulateIn {
32                    channels: None,
33                    code,
34                    event_type,
35                    payload,
36                    }
37                    }
38                    }
39