windmill-api 1.684.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.684.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TeamInfo {
    /// The unique identifier of the Microsoft Teams team
    #[serde(rename = "team_id")]
    pub team_id: String,
    /// The display name of the Microsoft Teams team
    #[serde(rename = "team_name")]
    pub team_name: String,
    /// List of channels within the team
    #[serde(rename = "channels")]
    pub channels: Vec<models::ChannelInfo>,
}

impl TeamInfo {
    pub fn new(team_id: String, team_name: String, channels: Vec<models::ChannelInfo>) -> TeamInfo {
        TeamInfo {
            team_id,
            team_name,
            channels,
        }
    }
}