Skip to main content

gmail/model/
settings_delegates_list_response.rs

1use serde::{Serialize, Deserialize};
2///Response for the ListDelegates method.
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct SettingsDelegatesListResponse {
5    ///List of the user's delegates (with any verification status). If an account doesn't have delegates, this field doesn't appear.
6    #[serde(default, skip_serializing_if = "Option::is_none")]
7    pub delegates: Option<Vec<serde_json::Value>>,
8}
9impl std::fmt::Display for SettingsDelegatesListResponse {
10    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
11        write!(f, "{}", serde_json::to_string(self).unwrap())
12    }
13}