pub struct SendStatus {
pub serial_no: String,
pub phone_number: String,
pub fee: i32,
pub session_context: String,
pub code: String,
pub message: String,
pub iso_code: String,
}
Expand description
SMS sending status information
Fields§
§serial_no: String
Serial number returned by the SMS sending API
phone_number: String
Phone number
fee: i32
Number of billable SMS messages
session_context: String
User session context
code: String
SMS delivery status code
message: String
SMS delivery status message
iso_code: String
Country/region code
Implementations§
Source§impl SendStatus
impl SendStatus
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the SMS was sent successfully
Sourcepub fn get_status_description(&self) -> &str
pub fn get_status_description(&self) -> &str
Get a human-readable status description
Trait Implementations§
Source§impl Clone for SendStatus
impl Clone for SendStatus
Source§fn clone(&self) -> SendStatus
fn clone(&self) -> SendStatus
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 moreSource§impl Debug for SendStatus
impl Debug for SendStatus
Source§impl<'de> Deserialize<'de> for SendStatus
impl<'de> Deserialize<'de> for SendStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SendStatus
impl RefUnwindSafe for SendStatus
impl Send for SendStatus
impl Sync for SendStatus
impl Unpin for SendStatus
impl UnwindSafe for SendStatus
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