pub struct SmsResult {
pub from: String,
pub to: String,
pub body: String,
pub sid: String,
pub status: SmsStatus,
pub media_url: Option<String>,
pub price: Option<String>,
pub price_unit: String,
pub date_created: Option<String>,
pub date_sent: Option<String>,
pub date_updated: String,
}Expand description
Result of correct SMS request.
Fields§
§from: StringOriginator of message.
to: StringDestination of message.
body: StringMessage content.
sid: StringID of message
Can be used to query SMS information via following link:
/2010-04-01/Accounts/{account_sid}/Messages/{sid}.json
status: SmsStatusStatus of message.
media_url: Option<String>URL of optional media attachment
price: Option<String>Cost of message
price_unit: StringCurrency unit of cost.
date_created: Option<String>Timestamp (including zone) of when message is created.
Can be None, despite it obviously not making sense
date_sent: Option<String>Timestamp (including zone) of when message is sent.
date_updated: StringTimestamp (including zone) of when message is updated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmsResult
impl<'de> Deserialize<'de> for SmsResult
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 SmsResult
impl RefUnwindSafe for SmsResult
impl Send for SmsResult
impl Sync for SmsResult
impl Unpin for SmsResult
impl UnwindSafe for SmsResult
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