btcpay_client/models/
email_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct EmailData {
16    /// Email of the recipient
17    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
18    pub email: Option<String>,
19    /// Subject of the email
20    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
21    pub subject: Option<String>,
22    /// Body of the email to send as plain text.
23    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
24    pub body: Option<String>,
25}
26
27impl EmailData {
28    pub fn new() -> EmailData {
29        EmailData {
30            email: None,
31            subject: None,
32            body: None,
33        }
34    }
35}
36
37