pub struct MessageInput {
pub from: Option<String>,
pub media: Option<Vec<String>>,
pub text: Option<String>,
pub to: Option<String>,
}Fields§
§from: Option<String>From is the number to send FROM, in E.164. It must be one this org holds and it must be sms-capable.
media: Option<Vec<String>>Media are URLs to attach. A message with any is an MMS to the carrier — the distinction is the carrier’s to make, not something the caller declares.
text: Option<String>Text is the message body. It may be empty when Media carries the message.
to: Option<String>To is the number to send to, in E.164.
Implementations§
Source§impl MessageInput
impl MessageInput
pub fn new() -> MessageInput
Trait Implementations§
Source§impl Clone for MessageInput
impl Clone for MessageInput
Source§fn clone(&self) -> MessageInput
fn clone(&self) -> MessageInput
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 MessageInput
impl Debug for MessageInput
Source§impl Default for MessageInput
impl Default for MessageInput
Source§fn default() -> MessageInput
fn default() -> MessageInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageInput
impl<'de> Deserialize<'de> for MessageInput
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
Source§impl PartialEq for MessageInput
impl PartialEq for MessageInput
Source§impl Serialize for MessageInput
impl Serialize for MessageInput
impl StructuralPartialEq for MessageInput
Auto Trait Implementations§
impl Freeze for MessageInput
impl RefUnwindSafe for MessageInput
impl Send for MessageInput
impl Sync for MessageInput
impl Unpin for MessageInput
impl UnsafeUnpin for MessageInput
impl UnwindSafe for MessageInput
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