pub struct TextMessage {
pub from: Option<String>,
pub to: Option<String>,
pub body: Option<String>,
pub variables: Option<Value>,
}Expand description
TextMessage : A text message.
Fields§
§from: Option<String>A technology specific URI specifying the source of the message. For pjsip technology, any SIP URI can be specified. For xmpp, the URI must correspond to the client connection being used to send the message.
to: Option<String>A technology specific URI specifying the destination of the message. Valid technologies include pjsip, and xmp. The destination of a message should be an endpoint.
body: Option<String>The text of the message.
variables: Option<Value>Technology specific key/value pairs (JSON object) associated with the message.
Trait Implementations§
Source§impl Clone for TextMessage
impl Clone for TextMessage
Source§fn clone(&self) -> TextMessage
fn clone(&self) -> TextMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 TextMessage
impl Debug for TextMessage
Source§impl Default for TextMessage
impl Default for TextMessage
Source§fn default() -> TextMessage
fn default() -> TextMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextMessage
impl<'de> Deserialize<'de> for TextMessage
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 TextMessage
impl PartialEq for TextMessage
impl StructuralPartialEq for TextMessage
Auto Trait Implementations§
impl Freeze for TextMessage
impl RefUnwindSafe for TextMessage
impl Send for TextMessage
impl Sync for TextMessage
impl Unpin for TextMessage
impl UnwindSafe for TextMessage
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