pub struct MessageService<'a> { /* private fields */ }Expand description
Asynchronous SMS message operations.
Implementations§
Source§impl<'a> MessageService<'a>
impl<'a> MessageService<'a>
Sourcepub async fn send(
&self,
params: &SendMessageRequest,
) -> Result<UniResponse<SendMessageData>>
pub async fn send( &self, params: &SendMessageRequest, ) -> Result<UniResponse<SendMessageData>>
Sends an SMS message.
Sourcepub async fn send_with<T, P>(&self, params: &P) -> Result<UniResponse<T>>
pub async fn send_with<T, P>(&self, params: &P) -> Result<UniResponse<T>>
Sends a custom serializable payload and returns custom response data.
Trait Implementations§
Source§impl<'a> Clone for MessageService<'a>
impl<'a> Clone for MessageService<'a>
Source§fn clone(&self) -> MessageService<'a>
fn clone(&self) -> MessageService<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for MessageService<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MessageService<'a>
impl<'a> !UnwindSafe for MessageService<'a>
impl<'a> Freeze for MessageService<'a>
impl<'a> Send for MessageService<'a>
impl<'a> Sync for MessageService<'a>
impl<'a> Unpin for MessageService<'a>
impl<'a> UnsafeUnpin for MessageService<'a>
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