mattermost_rust_client/models/
execute_command_request.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn). 
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ExecuteCommandRequest {
16    /// Channel Id where the command will execute
17    #[serde(rename = "channel_id")]
18    pub channel_id: String,
19    /// The slash command to execute
20    #[serde(rename = "command")]
21    pub command: String,
22}
23
24impl ExecuteCommandRequest {
25    pub fn new(channel_id: String, command: String) -> ExecuteCommandRequest {
26        ExecuteCommandRequest {
27            channel_id,
28            command,
29        }
30    }
31}
32
33