windmill-api 1.842.0

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.842.0
 * 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 SlackAgentChannel {
    #[serde(rename = "channel_id")]
    pub channel_id: String,
    #[serde(rename = "channel_name")]
    pub channel_name: String,
    #[serde(rename = "agent_path")]
    pub agent_path: String,
    /// whether the agent answers bot mentions in the channel that name no agent
    #[serde(rename = "is_default")]
    pub is_default: bool,
}

impl SlackAgentChannel {
    pub fn new(channel_id: String, channel_name: String, agent_path: String, is_default: bool) -> SlackAgentChannel {
        SlackAgentChannel {
            channel_id,
            channel_name,
            agent_path,
            is_default,
        }
    }
}