windmill-api 1.683.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.683.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 SendMessageToConversationRequest {
    /// The ID of the Teams conversation/activity
    #[serde(rename = "conversation_id")]
    pub conversation_id: String,
    /// Used for styling the card conditionally
    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
    /// The message text to be sent in the Teams card
    #[serde(rename = "text")]
    pub text: String,
    /// The card block to be sent in the Teams card
    #[serde(rename = "card_block", skip_serializing_if = "Option::is_none")]
    pub card_block: Option<serde_json::Value>,
}

impl SendMessageToConversationRequest {
    pub fn new(conversation_id: String, text: String) -> SendMessageToConversationRequest {
        SendMessageToConversationRequest {
            conversation_id,
            success: None,
            text,
            card_block: None,
        }
    }
}