pub struct SmsSendMessageResult {Show 20 fields
pub direction: Option<String>,
pub date: Option<i64>,
pub to: Option<String>,
pub body: Option<String>,
pub from: Option<String>,
pub schedule: Option<i64>,
pub message_id: Option<String>,
pub message_parts: Option<u32>,
pub message_price: Option<f64>,
pub custom_string: Option<String>,
pub user_id: Option<u64>,
pub subaccount_id: Option<u64>,
pub country: Option<String>,
pub carrier: Option<String>,
pub status: Option<String>,
pub status_code: Option<String>,
pub status_text: Option<String>,
pub error_code: Option<String>,
pub error_text: Option<String>,
pub is_shared_system_number: Option<bool>,
}Expand description
One row returned by /sms/send and /sms/price.
Most fields are Option because price doesn’t populate post-send fields
(carrier, status_code, …) and send doesn’t populate response-only
fields. Inspect Self::status to tell what happened to each message.
Fields§
§direction: Option<String>"out" for outbound, "in" for inbound replies.
date: Option<i64>Unix timestamp when ClickSend processed the message.
to: Option<String>Recipient (E.164).
body: Option<String>Message body.
from: Option<String>Sender id used.
schedule: Option<i64>Scheduled send time. Quirky: ClickSend returns "" for “send now”,
or a unix timestamp number — both map to Option<i64> here.
message_id: Option<String>Globally unique message id (use this for cancel/receipts).
message_parts: Option<u32>SMS parts (long messages get split). Each part is billed.
message_price: Option<f64>Per-message price. Returned as a string by the API.
custom_string: Option<String>Echoed back from your request.
user_id: Option<u64>Owner user id.
subaccount_id: Option<u64>Subaccount id (multi-tenant accounts).
country: Option<String>Detected destination country (ISO).
carrier: Option<String>Detected carrier ("Vodafone", "Verizon", …). Populated post-send.
status: Option<String>"SUCCESS" / "Sent" / "FAILED" etc.
status_code: Option<String>Numeric status (per /sms/history schema).
status_text: Option<String>Human-readable status.
error_code: Option<String>Numeric error code if delivery failed.
error_text: Option<String>Human-readable error.
true if a shared sender pool number was used.
Trait Implementations§
Source§impl Clone for SmsSendMessageResult
impl Clone for SmsSendMessageResult
Source§fn clone(&self) -> SmsSendMessageResult
fn clone(&self) -> SmsSendMessageResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more