pub struct SendStatus {
pub serial_no: String,
pub phone_number: String,
pub fee: u32,
pub session_context: String,
pub code: SmsStatusCode,
pub message: String,
pub iso_code: String,
}Fields§
§serial_no: String§phone_number: String§fee: u32§session_context: String§code: SmsStatusCode发送状态码
message: String状态描述信息
iso_code: StringImplementations§
Source§impl SendStatus
impl SendStatus
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
判断是否发送成功
Sourcepub fn is_rate_limited(&self) -> bool
pub fn is_rate_limited(&self) -> bool
判断是否因频率限制失败
Sourcepub fn is_invalid_number(&self) -> bool
pub fn is_invalid_number(&self) -> bool
判断是否因手机号无效失败
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