pub struct EmailsSvc(/* private fields */);Implementations§
Source§impl EmailsSvc
impl EmailsSvc
pub async fn send( &self, body: &SendEmailRequest, ) -> ApiResult<SendEmailResponse>
pub async fn send_with_idempotency_key( &self, body: &SendEmailRequest, idempotency_key: &str, ) -> ApiResult<SendEmailResponse>
pub async fn batch_send( &self, bodies: &[SendEmailRequest], ) -> ApiResult<BatchSendResponse>
pub async fn batch_send_with_idempotency_key( &self, bodies: &[SendEmailRequest], idempotency_key: &str, ) -> ApiResult<BatchSendResponse>
pub async fn list( &self, params: &ListEmailsParams, ) -> ApiResult<ListEmailsResponse>
pub async fn get(&self, email_id: &str) -> ApiResult<EmailDetail>
pub async fn reschedule( &self, email_id: &str, body: &RescheduleEmailRequest, ) -> ApiResult<SendEmailResponse>
pub async fn cancel(&self, email_id: &str) -> ApiResult<SendEmailResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmailsSvc
impl !RefUnwindSafe for EmailsSvc
impl Send for EmailsSvc
impl Sync for EmailsSvc
impl Unpin for EmailsSvc
impl UnsafeUnpin for EmailsSvc
impl !UnwindSafe for EmailsSvc
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