Skip to main content

windmill_api/models/
slack_agent_channel.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.846.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 SlackAgentChannel {
16    #[serde(rename = "channel_id")]
17    pub channel_id: String,
18    #[serde(rename = "channel_name")]
19    pub channel_name: String,
20    #[serde(rename = "agent_path")]
21    pub agent_path: String,
22    /// whether the agent answers bot mentions in the channel that name no agent
23    #[serde(rename = "is_default")]
24    pub is_default: bool,
25}
26
27impl SlackAgentChannel {
28    pub fn new(channel_id: String, channel_name: String, agent_path: String, is_default: bool) -> SlackAgentChannel {
29        SlackAgentChannel {
30            channel_id,
31            channel_name,
32            agent_path,
33            is_default,
34        }
35    }
36}
37