pub struct EmailService {
pub req_client: ReqClient,
}
Fields§
§req_client: ReqClient
Implementations§
Source§impl EmailService
impl EmailService
pub fn new(req_client: ReqClient) -> EmailService
pub async fn send<'a>( &self, params: &'a SendEmailRequest<'a>, ) -> Result<APIResponse<SendEmailResponse>, APIResponse<SendEmailResponse>>
pub async fn get<'a, T: Into<String>>( &self, email_id: T, ) -> Result<APIResponse<Email>, APIResponse<Email>>
Auto Trait Implementations§
impl Freeze for EmailService
impl !RefUnwindSafe for EmailService
impl Send for EmailService
impl Sync for EmailService
impl Unpin for EmailService
impl !UnwindSafe for EmailService
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