gmail 0.18.0

A fluent library for the Gmail API, based on OpenAPI spec
Documentation
use serde::{Serialize, Deserialize};
use super::History;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct ListHistoryResponse {
    ///List of history records. Any `messages` contained in the response will typically only have `id` and `threadId` fields populated.
    #[serde(default)]
    pub history: Vec<History>,
    ///The ID of the mailbox's current history record.
    #[serde(rename = "historyId")]
    pub history_id: String,
    ///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>,
}
impl std::fmt::Display for ListHistoryResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}