dtz-rss2email 2.0.6

a generated client for the DTZ RSS2Email API
Documentation
/*
 * DTZ RSS2Email Api
 *
 * a generated client for the DTZ RSS2Email API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProfileResponse {
    #[serde(rename = "email")]
    pub email: String,
    #[serde(rename = "subject")]
    pub subject: String,
    #[serde(rename = "body")]
    pub body: String,
    #[serde(rename = "contextId")]
    pub context_id: String,
    #[serde(rename = "identityId")]
    pub identity_id: String,
}

impl ProfileResponse {
    pub fn new(email: String, subject: String, body: String, context_id: String, identity_id: String) -> ProfileResponse {
        ProfileResponse {
            email,
            subject,
            body,
            context_id,
            identity_id,
        }
    }
}