svix_webhook_with_clone/models/integration_out.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 IntegrationOut {
18 #[serde(rename = "createdAt")]
19 pub created_at: String,
20 /// The integ's ID
21 #[serde(rename = "id")]
22 pub id: String,
23 #[serde(rename = "name")]
24 pub name: String,
25 #[serde(rename = "updatedAt")]
26 pub updated_at: String,
27 }
28
29 impl IntegrationOut {
30 pub fn new(created_at: String, id: String, name: String, updated_at: String) -> IntegrationOut {
31 IntegrationOut {
32 created_at,
33 id,
34 name,
35 updated_at,
36 }
37 }
38 }
39