svix_webhook_with_clone/models/
event_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 EventIn {
18                        /// The event type's name
19                        #[serde(rename = "eventType", skip_serializing_if = "Option::is_none")]
20                        pub event_type: Option<String>,
21                        #[serde(rename = "payload")]
22                        pub payload: String,
23                    }
24
25                    impl EventIn {
26                    pub fn new(payload: String) -> EventIn {
27                EventIn {
28                    event_type: None,
29                    payload,
30                    }
31                    }
32                    }
33