pub struct SmsResource { /* private fields */ }Expand description
SMS records — /api/v2/sms.
Implementations§
Source§impl SmsResource
impl SmsResource
Sourcepub async fn list_all(&self) -> Result<Vec<Sms>, ManagerError>
pub async fn list_all(&self) -> Result<Vec<Sms>, ManagerError>
List all SMS records (auto-paginated).
Sourcepub async fn get(&self, id: &str) -> Result<SmsItemResponse, ManagerError>
pub async fn get(&self, id: &str) -> Result<SmsItemResponse, ManagerError>
Get a single SMS record by id.
Sourcepub async fn send(
&self,
body: SmsSendRequest,
) -> Result<SmsItemResponse, ManagerError>
pub async fn send( &self, body: SmsSendRequest, ) -> Result<SmsItemResponse, ManagerError>
Send an outbound SMS.
Sourcepub async fn delete(&self, id: &str) -> Result<SmsItemResponse, ManagerError>
pub async fn delete(&self, id: &str) -> Result<SmsItemResponse, ManagerError>
Delete an SMS record by id.
Sourcepub async fn report_page(
&self,
page: i32,
per_page: Option<i32>,
) -> Result<Page<Sms>, ManagerError>
pub async fn report_page( &self, page: i32, per_page: Option<i32>, ) -> Result<Page<Sms>, ManagerError>
One page of SMS reporting records.
Sourcepub async fn report(&self) -> Result<Vec<Sms>, ManagerError>
pub async fn report(&self) -> Result<Vec<Sms>, ManagerError>
SMS reporting records (auto-paginated).
Sourcepub async fn test_inbound(
&self,
body: SmsSendRequest,
) -> Result<SmsItemResponse, ManagerError>
pub async fn test_inbound( &self, body: SmsSendRequest, ) -> Result<SmsItemResponse, ManagerError>
Create a test inbound SMS.
Auto Trait Implementations§
impl !RefUnwindSafe for SmsResource
impl !UnwindSafe for SmsResource
impl Freeze for SmsResource
impl Send for SmsResource
impl Sync for SmsResource
impl Unpin for SmsResource
impl UnsafeUnpin for SmsResource
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