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>
pub fn builder<P: AsRef<Path>, S: Into<String>>( service_account_path: P, send_from_email: S, ) -> Result<GmailClientBuilder>
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 duplicate 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 Freeze for GmailClient
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