mattermost-rust-client 4.0.8

Rust client for Mattermost
Documentation
/*
 * Mattermost API Reference
 *
 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn). 
 *
 * The version of the OpenAPI document: 4.0.0
 * Contact: feedback@mattermost.com
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CommandResponse {
    /// The response type either in_channel or ephemeral
    #[serde(rename = "ResponseType", skip_serializing_if = "Option::is_none")]
    pub response_type: Option<String>,
    #[serde(rename = "Text", skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    #[serde(rename = "Username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "IconURL", skip_serializing_if = "Option::is_none")]
    pub icon_url: Option<String>,
    #[serde(rename = "GotoLocation", skip_serializing_if = "Option::is_none")]
    pub goto_location: Option<String>,
    #[serde(rename = "Attachments", skip_serializing_if = "Option::is_none")]
    pub attachments: Option<Vec<crate::models::SlackAttachment>>,
}

impl CommandResponse {
    pub fn new() -> CommandResponse {
        CommandResponse {
            response_type: None,
            text: None,
            username: None,
            icon_url: None,
            goto_location: None,
            attachments: None,
        }
    }
}