1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::{Serialize, Deserialize};
///Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct SettingsFiltersGetResponse {
    ///Action that the filter performs.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<serde_json::Value>,
    ///Matching criteria for the filter.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub criteria: Option<serde_json::Value>,
    ///The server assigned ID of the filter.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
}
impl std::fmt::Display for SettingsFiltersGetResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}