pub struct SmsSendData {
pub total_price: Option<f64>,
pub total_count: Option<u32>,
pub queued_count: Option<u32>,
pub blocked_count: Option<u32>,
pub messages: Vec<SmsSendMessageResult>,
pub currency: Option<Currency>,
}Expand description
Response payload for /sms/send and /sms/price. Same shape — price
just doesn’t actually send.
Fields§
§total_price: Option<f64>Sum of message_price across all messages. ClickSend returns this
as a string; parsed to f64 here.
total_count: Option<u32>Total messages submitted.
queued_count: Option<u32>Successfully queued for sending.
blocked_count: Option<u32>Rejected (blocked sender id, opt-out, etc).
messages: Vec<SmsSendMessageResult>Per-message results in the same order as the request.
currency: Option<Currency>Currency block.
Trait Implementations§
Source§impl Clone for SmsSendData
impl Clone for SmsSendData
Source§fn clone(&self) -> SmsSendData
fn clone(&self) -> SmsSendData
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 SmsSendData
impl Debug for SmsSendData
Source§impl Default for SmsSendData
impl Default for SmsSendData
Source§fn default() -> SmsSendData
fn default() -> SmsSendData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SmsSendData
impl<'de> Deserialize<'de> for SmsSendData
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 SmsSendData
impl RefUnwindSafe for SmsSendData
impl Send for SmsSendData
impl Sync for SmsSendData
impl Unpin for SmsSendData
impl UnsafeUnpin for SmsSendData
impl UnwindSafe for SmsSendData
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