rusty-box 0.2.0-alpha

Box.com API wrapper
Documentation
/*
 * Box Platform API
 *
 * [Box Platform](https://box.dev) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies.
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: devrel@box.com
 * Generated by: https://openapi-generator.tech
 */

/// UserAllOfNotificationEmail : An alternate notification email address to which email notifications are sent. When it's confirmed, this will be the email address to which notifications are sent instead of to the primary email address.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UserAllOfNotificationEmail {
    /// The email address to send the notifications to.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// Specifies if this email address has been confirmed.
    #[serde(rename = "is_confirmed", skip_serializing_if = "Option::is_none")]
    pub is_confirmed: Option<bool>,
}

impl UserAllOfNotificationEmail {
    /// An alternate notification email address to which email notifications are sent. When it's confirmed, this will be the email address to which notifications are sent instead of to the primary email address.
    pub fn new() -> UserAllOfNotificationEmail {
        UserAllOfNotificationEmail {
            email: None,
            is_confirmed: None,
        }
    }
}