Struct rust_gmail::GmailClient
source · pub struct GmailClient { /* private fields */ }
Expand description
A client ready to send emails through the Gmail API.
Implementations§
source§impl GmailClient
impl GmailClient
sourcepub fn builder<P: AsRef<Path>, S: Into<String>>(
service_account_path: P,
send_from_email: S
) -> Result<GmailClientBuilder, GoogleApiError>
pub fn builder<P: AsRef<Path>, S: Into<String>>( service_account_path: P, send_from_email: S ) -> Result<GmailClientBuilder, GoogleApiError>
Alias for GmailClientBuilder::new()
.
Trait Implementations§
source§impl Clone for GmailClient
impl Clone for GmailClient
source§fn clone(&self) -> GmailClient
fn clone(&self) -> GmailClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for GmailClient
impl Send for GmailClient
impl Sync for GmailClient
impl Unpin for GmailClient
impl UnwindSafe for GmailClient
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