pub struct SmsMessage {
pub status: SmsStatus,
pub index: String,
pub phone: String,
pub content: String,
pub date: String,
pub sca: Option<String>,
pub save_type: String,
pub priority: SmsPriority,
pub sms_type: SmsType,
}Expand description
SMS message from /api/sms/sms-list response
Fields§
§status: SmsStatus§index: String§phone: String§content: String§date: String§sca: Option<String>§save_type: String§priority: SmsPriority§sms_type: SmsTypeImplementations§
Source§impl SmsMessage
impl SmsMessage
Sourcepub fn phone_number(&self) -> &str
pub fn phone_number(&self) -> &str
Get formatted phone number
Trait Implementations§
Source§impl Clone for SmsMessage
impl Clone for SmsMessage
Source§fn clone(&self) -> SmsMessage
fn clone(&self) -> SmsMessage
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 moreSource§impl Debug for SmsMessage
impl Debug for SmsMessage
Source§impl<'de> Deserialize<'de> for SmsMessage
impl<'de> Deserialize<'de> for SmsMessage
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 SmsMessage
impl RefUnwindSafe for SmsMessage
impl Send for SmsMessage
impl Sync for SmsMessage
impl Unpin for SmsMessage
impl UnsafeUnpin for SmsMessage
impl UnwindSafe for SmsMessage
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