/*
* 1MSG WhatsApp Business API (Public)
*
* Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
*
* The version of the OpenAPI document: 2.0.0
* Contact: support@1msg.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SendMessageRequestDirectSend : Optional. Ignored unless `category` is `utility` or `authentication`. `serviceFirst` is not forwarded to Meta.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendMessageRequestDirectSend {
/// When true, send a service message first. Success stops there. A closed-window error (131047) retries as Direct Send. Any other error is returned and Direct Send is not attempted. Omit or false to send Direct Send immediately, even inside an open window.
#[serde(rename = "serviceFirst", skip_serializing_if = "Option::is_none")]
pub service_first: Option<bool>,
/// Utility only. Meta creates or reuses a Direct Send template with this exact name (`^[a-z0-9_]+$`, max 512). Do not reuse a template created by hand.
#[serde(rename = "templateName", skip_serializing_if = "Option::is_none")]
pub template_name: Option<String>,
}
impl SendMessageRequestDirectSend {
/// Optional. Ignored unless `category` is `utility` or `authentication`. `serviceFirst` is not forwarded to Meta.
pub fn new() -> SendMessageRequestDirectSend {
SendMessageRequestDirectSend {
service_first: None,
template_name: None,
}
}
}