gmail 0.18.0

A fluent library for the Gmail API, based on OpenAPI spec
Documentation
use serde::{Serialize, Deserialize};
use super::{CompactThread, Thread};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct ListThreadsResponse {
    ///Page token to retrieve the next page of results in the list.
    #[serde(rename = "nextPageToken")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
    ///Estimated total number of results.
    #[serde(rename = "resultSizeEstimate")]
    pub result_size_estimate: i64,
    ///List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the threads.get method.
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub threads: Vec<CompactThread>,
}
impl std::fmt::Display for ListThreadsResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}