fastcomments-sdk 3.0.1

Official FastComments Rust SDK (Typed API Client & Utilities)
Documentation
/*
 * fastcomments
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::client::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateEmailTemplateBody {
    #[serde(rename = "emailTemplateId", skip_serializing_if = "Option::is_none")]
    pub email_template_id: Option<String>,
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    #[serde(rename = "ejs", skip_serializing_if = "Option::is_none")]
    pub ejs: Option<String>,
    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
    pub domain: Option<String>,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "translationOverridesByLocale", skip_serializing_if = "Option::is_none")]
    pub translation_overrides_by_locale: Option<std::collections::HashMap<String, std::collections::HashMap<String, String>>>,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "testData", skip_serializing_if = "Option::is_none")]
    pub test_data: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl UpdateEmailTemplateBody {
    pub fn new() -> UpdateEmailTemplateBody {
        UpdateEmailTemplateBody {
            email_template_id: None,
            display_name: None,
            ejs: None,
            domain: None,
            translation_overrides_by_locale: None,
            test_data: None,
        }
    }
}