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
#![allow(unused_imports)]
use gmail::GmailClient;
use gmail::model::*;
#[tokio::main]
async fn main() {
    let client = GmailClient::from_env();
    let user_id = "your user id";
    let response = client
        .threads_list(user_id)
        .include_spam_trash(true)
        .label_ids(&["your label ids"])
        .max_results(1)
        .page_token("your page token")
        .q("your q")
        .await
        .unwrap();
    println!("{:#?}", response);
}