windmill_api/models/
channel_info.rs

1/*
2 * Windmill 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.555.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ChannelInfo {
16    /// The unique identifier of the channel
17    #[serde(rename = "channel_id")]
18    pub channel_id: String,
19    /// The display name of the channel
20    #[serde(rename = "channel_name")]
21    pub channel_name: String,
22    /// The Microsoft Teams tenant identifier
23    #[serde(rename = "tenant_id")]
24    pub tenant_id: String,
25    /// The service URL for the channel
26    #[serde(rename = "service_url")]
27    pub service_url: String,
28}
29
30impl ChannelInfo {
31    pub fn new(channel_id: String, channel_name: String, tenant_id: String, service_url: String) -> ChannelInfo {
32        ChannelInfo {
33            channel_id,
34            channel_name,
35            tenant_id,
36            service_url,
37        }
38    }
39}
40