mattermost_rust_client/models/update_outgoing_webhook_request.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
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct UpdateOutgoingWebhookRequest {
16 /// Outgoing webhook GUID
17 #[serde(rename = "id")]
18 pub id: String,
19 /// The ID of a public channel or private group that receives the webhook payloads.
20 #[serde(rename = "channel_id")]
21 pub channel_id: String,
22 /// The display name for this incoming webhook
23 #[serde(rename = "display_name")]
24 pub display_name: String,
25 /// The description for this incoming webhook
26 #[serde(rename = "description")]
27 pub description: String,
28}
29
30impl UpdateOutgoingWebhookRequest {
31 pub fn new(id: String, channel_id: String, display_name: String, description: String) -> UpdateOutgoingWebhookRequest {
32 UpdateOutgoingWebhookRequest {
33 id,
34 channel_id,
35 display_name,
36 description,
37 }
38 }
39}
40
41