pub struct ReceivingSvc(/* private fields */);Expand description
Resend APIs for /emails/receiving endpoints.
Implementations§
Source§impl ReceivingSvc
impl ReceivingSvc
Sourcepub async fn get(&self, email_id: &str) -> Result<InboundEmail>
pub async fn get(&self, email_id: &str) -> Result<InboundEmail>
Retrieve a single received email.
https://resend.com/docs/api-reference/emails/retrieve-received-email
Sourcepub async fn list<T>(
&self,
list_opts: ListOptions<T>,
) -> Result<ListResponse<InboundEmail>>
pub async fn list<T>( &self, list_opts: ListOptions<T>, ) -> Result<ListResponse<InboundEmail>>
Retrieve a list of received emails for the authenticated user.
https://resend.com/docs/api-reference/emails/list-received-emails
Sourcepub async fn get_attachment(
&self,
attachment_id: &str,
email_id: &str,
) -> Result<InboundAttachment>
pub async fn get_attachment( &self, attachment_id: &str, email_id: &str, ) -> Result<InboundAttachment>
Retrieve a single attachment from a received email.
https://resend.com/docs/api-reference/emails/retrieve-received-email
Sourcepub async fn list_attachments<T>(
&self,
email_id: &str,
list_opts: ListOptions<T>,
) -> Result<ListResponse<InboundAttachment>>
pub async fn list_attachments<T>( &self, email_id: &str, list_opts: ListOptions<T>, ) -> Result<ListResponse<InboundAttachment>>
Retrieve a list of email attachments and their contents.
https://resend.com/docs/api-reference/attachments/list-received-email-attachments
Trait Implementations§
Source§impl Clone for ReceivingSvc
impl Clone for ReceivingSvc
Source§fn clone(&self) -> ReceivingSvc
fn clone(&self) -> ReceivingSvc
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 ReceivingSvc
impl !RefUnwindSafe for ReceivingSvc
impl Send for ReceivingSvc
impl Sync for ReceivingSvc
impl Unpin for ReceivingSvc
impl !UnwindSafe for ReceivingSvc
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