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 EmailTemplateDefinition {
    #[serde(rename = "emailTemplateId")]
    pub email_template_id: String,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "defaultTestData")]
    pub default_test_data: std::collections::HashMap<String, serde_json::Value>,
    /// Construct a type with a set of properties K of type T
    #[serde(rename = "defaultTranslationsByLocale")]
    pub default_translations_by_locale: std::collections::HashMap<String, std::collections::HashMap<String, String>>,
    #[serde(rename = "defaultEJS")]
    pub default_ejs: String,
}

impl EmailTemplateDefinition {
    pub fn new(email_template_id: String, default_test_data: std::collections::HashMap<String, serde_json::Value>, default_translations_by_locale: std::collections::HashMap<String, std::collections::HashMap<String, String>>, default_ejs: String) -> EmailTemplateDefinition {
        EmailTemplateDefinition {
            email_template_id,
            default_test_data,
            default_translations_by_locale,
            default_ejs,
        }
    }
}