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: String
Originator of message.
to: String
Destination of message.
body: String
Message content.
sid: String
ID of message
Can be used to query SMS information via following link:
/2010-04-01/Accounts/{account_sid}/Messages/{sid}.json
status: SmsStatus
Status of message.
media_url: Option<String>
URL of optional media attachment
price: Option<String>
Cost of message
price_unit: String
Currency 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: String
Timestamp (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