mattermost_client/openapi/models/
incoming_webhook.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
12pub struct IncomingWebhook {
13    /// The unique identifier for this incoming webhook
14    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
15    pub id: Option<String>,
16    /// The time in milliseconds a incoming webhook was created
17    #[serde(rename = "create_at", skip_serializing_if = "Option::is_none")]
18    pub create_at: Option<i64>,
19    /// The time in milliseconds a incoming webhook was last updated
20    #[serde(rename = "update_at", skip_serializing_if = "Option::is_none")]
21    pub update_at: Option<i64>,
22    /// The time in milliseconds a incoming webhook was deleted
23    #[serde(rename = "delete_at", skip_serializing_if = "Option::is_none")]
24    pub delete_at: Option<i64>,
25    /// The ID of a public channel or private group that receives the webhook payloads
26    #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")]
27    pub channel_id: Option<String>,
28    /// The description for this incoming webhook
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31    /// The display name for this incoming webhook
32    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
33    pub display_name: Option<String>,
34}
35
36impl IncomingWebhook {
37    pub fn new() -> IncomingWebhook {
38        IncomingWebhook {
39            id: None,
40            create_at: None,
41            update_at: None,
42            delete_at: None,
43            channel_id: None,
44            description: None,
45            display_name: None,
46        }
47    }
48}