pub struct Client { /* private fields */ }
Expand description
A client for the WaffleHacks mailer
Implementations§
source§impl Client
impl Client
sourcepub async fn send<'s>(
&'s self,
to: &'s str,
from: &'s str,
subject: &'s str,
body: &'s str
) -> SendBuilder<'s>
pub async fn send<'s>( &'s self, to: &'s str, from: &'s str, subject: &'s str, body: &'s str ) -> SendBuilder<'s>
Send a single email
sourcepub async fn send_batch<'s>(
&'s self,
from: &'s str,
subject: &'s str,
body: &'s str
) -> SendBatchBuilder<'s>
pub async fn send_batch<'s>( &'s self, from: &'s str, subject: &'s str, body: &'s str ) -> SendBatchBuilder<'s>
Send an email to many recipients
sourcepub async fn send_template<'s>(
&'s self,
from: &'s str,
subject: &'s str,
body: &'s str
) -> SendTemplateBuilder<'s>
pub async fn send_template<'s>( &'s self, from: &'s str, subject: &'s str, body: &'s str ) -> SendTemplateBuilder<'s>
Send a templated email to many recipients
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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