pub struct GmailCodeConfig {
pub access_token: String,
pub base_url: String,
pub user_id: String,
pub user_agent: Option<String>,
pub connect_timeout: Duration,
pub request_timeout: Duration,
}Expand description
Configuration for authorized Gmail API requests.
Fields§
§access_token: StringGmail API OAuth access token for a mailbox controlled by the caller.
base_url: StringGmail API base URL. Keep the default for production use.
user_id: StringGmail userId path segment. me is the normal value for OAuth callers.
user_agent: Option<String>HTTP user agent sent by this client.
connect_timeout: DurationTCP connect timeout.
request_timeout: DurationTotal request timeout.
Implementations§
Source§impl GmailCodeConfig
impl GmailCodeConfig
Sourcepub fn builder(access_token: impl Into<String>) -> GmailCodeConfigBuilder
pub fn builder(access_token: impl Into<String>) -> GmailCodeConfigBuilder
Starts a config builder with the required Gmail OAuth access token.
Trait Implementations§
Source§impl Clone for GmailCodeConfig
impl Clone for GmailCodeConfig
Source§fn clone(&self) -> GmailCodeConfig
fn clone(&self) -> GmailCodeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GmailCodeConfig
impl Debug for GmailCodeConfig
Source§impl PartialEq for GmailCodeConfig
impl PartialEq for GmailCodeConfig
Source§fn eq(&self, other: &GmailCodeConfig) -> bool
fn eq(&self, other: &GmailCodeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GmailCodeConfig
impl StructuralPartialEq for GmailCodeConfig
Auto Trait Implementations§
impl Freeze for GmailCodeConfig
impl RefUnwindSafe for GmailCodeConfig
impl Send for GmailCodeConfig
impl Sync for GmailCodeConfig
impl Unpin for GmailCodeConfig
impl UnsafeUnpin for GmailCodeConfig
impl UnwindSafe for GmailCodeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more