use std::collections::HashMap; use google_gmail1::{ Gmail, api::Label, hyper_rustls::{HttpsConnector, HttpsConnectorBuilder}, hyper_util::{ client::legacy::{Client, connect::HttpConnector}, rt::TokioExecutor, }, yup_oauth2::{ApplicationSecret, InstalledFlowAuthenticator, InstalledFlowReturnMethod}, }; use crate::{Credential, Result}; /// Default for the maximum number of results to return on a page pub const DEFAULT_MAX_RESULTS: &str = "10"; /// Struct to capture configuration for List API call. pub struct Labels { hub: Gmail>, label_list: Vec