diff --git a/src/labels.rs b/src/labels.rs new file mode 100644 index 0000000..e5e45c9 --- /dev/null +++ b/src/labels.rs @@ -0,0 +1,113 @@ +use std::collections::HashMap; + +use google_gmail1::{ + Gmail, + api::{Label, ListLabelsResponse}, + hyper_rustls::{HttpsConnector, HttpsConnectorBuilder}, + hyper_util::{ + client::legacy::{Client, connect::HttpConnector}, + rt::TokioExecutor, + }, + yup_oauth2::{ApplicationSecret, InstalledFlowAuthenticator, InstalledFlowReturnMethod}, +}; + +use crate::{Credential, Error}; + +/// 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