windmill_api/models/
team_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.558.0
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 TeamInfo {
16    /// The unique identifier of the Microsoft Teams team
17    #[serde(rename = "team_id")]
18    pub team_id: String,
19    /// The display name of the Microsoft Teams team
20    #[serde(rename = "team_name")]
21    pub team_name: String,
22    /// List of channels within the team
23    #[serde(rename = "channels")]
24    pub channels: Vec<models::ChannelInfo>,
25}
26
27impl TeamInfo {
28    pub fn new(team_id: String, team_name: String, channels: Vec<models::ChannelInfo>) -> TeamInfo {
29        TeamInfo {
30            team_id,
31            team_name,
32            channels,
33        }
34    }
35}
36