gmail 0.18.0

A fluent library for the Gmail API, based on OpenAPI spec
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Serialize, Deserialize};
///Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator's account. See "Set up mail delegation" for more information about delegates.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct SettingsDelegatesGetResponse {
    ///The email address of the delegate.
    #[serde(rename = "delegateEmail")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub delegate_email: Option<String>,
    ///Indicates whether this address has been verified and can act as a delegate for the account. Read-only.
    #[serde(rename = "verificationStatus")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub verification_status: Option<String>,
}
impl std::fmt::Display for SettingsDelegatesGetResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}