one-msg-sdk 2.0.3

Official Rust SDK for the 1msg WhatsApp Business API
/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchFlowsFlowIdMetadataRequest {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "categories", skip_serializing_if = "Option::is_none")]
    pub categories: Option<Vec<Categories>>,
    /// HTTPS endpoint for the Flow data channel
    #[serde(rename = "endpointUri", skip_serializing_if = "Option::is_none")]
    pub endpoint_uri: Option<String>,
}

impl PatchFlowsFlowIdMetadataRequest {
    pub fn new() -> PatchFlowsFlowIdMetadataRequest {
        PatchFlowsFlowIdMetadataRequest {
            name: None,
            categories: None,
            endpoint_uri: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Categories {
    #[serde(rename = "SIGN_UP")]
    SignUp,
    #[serde(rename = "SIGN_IN")]
    SignIn,
    #[serde(rename = "APPOINTMENT_BOOKING")]
    AppointmentBooking,
    #[serde(rename = "LEAD_GENERATION")]
    LeadGeneration,
    #[serde(rename = "CONTACT_US")]
    ContactUs,
    #[serde(rename = "CUSTOMER_SUPPORT")]
    CustomerSupport,
    #[serde(rename = "SURVEY")]
    Survey,
    #[serde(rename = "OTHER")]
    Other,
}

impl Default for Categories {
    fn default() -> Categories {
        Self::SignUp
    }
}