pub struct Chorus { /* private fields */ }Expand description
The main Chorus client — high-level API for sending messages.
Implementations§
Source§impl Chorus
impl Chorus
pub fn builder() -> ChorusBuilder
pub async fn send_sms( &self, msg: &SmsMessage, ) -> Result<SendResult, ChorusError>
pub async fn send_email( &self, msg: &EmailMessage, ) -> Result<SendResult, ChorusError>
pub async fn send_email_template( &self, to: &str, template_slug: &str, variables: &HashMap<String, String>, ) -> Result<SendResult, ChorusError>
pub async fn send_otp( &self, recipient: &str, code: &str, app_name: &str, ) -> Result<SendResult, ChorusError>
Auto Trait Implementations§
impl Freeze for Chorus
impl !RefUnwindSafe for Chorus
impl Send for Chorus
impl Sync for Chorus
impl Unpin for Chorus
impl UnsafeUnpin for Chorus
impl !UnwindSafe for Chorus
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