Skip to main content

SmsSendMessageResult

Struct SmsSendMessageResult 

Source
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.

§is_shared_system_number: Option<bool>

true if a shared sender pool number was used.

Trait Implementations§

Source§

impl Clone for SmsSendMessageResult

Source§

fn clone(&self) -> SmsSendMessageResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SmsSendMessageResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SmsSendMessageResult

Source§

fn default() -> SmsSendMessageResult

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SmsSendMessageResult

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,