pub struct TextMessageV2 {
pub type: Option<String>,
pub quick_reply: Option<Box<QuickReply>>,
pub sender: Option<Box<Sender>>,
pub text: String,
pub substitution: Option<HashMap<String, SubstitutionObject>>,
pub quote_token: Option<String>,
}
Fields§
§type: Option<String>
Type of message
quick_reply: Option<Box<QuickReply>>
§sender: Option<Box<Sender>>
§text: String
§substitution: Option<HashMap<String, SubstitutionObject>>
A mapping that specifies substitutions for parts enclosed in {} within the text
field.
quote_token: Option<String>
Quote token of the message you want to quote.
Implementations§
Source§impl TextMessageV2
impl TextMessageV2
pub fn new(type: String, text: String) -> TextMessageV2
Trait Implementations§
Source§impl Clone for TextMessageV2
impl Clone for TextMessageV2
Source§fn clone(&self) -> TextMessageV2
fn clone(&self) -> TextMessageV2
Returns a copy 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 TextMessageV2
impl Debug for TextMessageV2
Source§impl Default for TextMessageV2
impl Default for TextMessageV2
Source§fn default() -> TextMessageV2
fn default() -> TextMessageV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextMessageV2
impl<'de> Deserialize<'de> for TextMessageV2
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 TextMessageV2
impl PartialEq for TextMessageV2
Source§impl Serialize for TextMessageV2
impl Serialize for TextMessageV2
impl StructuralPartialEq for TextMessageV2
Auto Trait Implementations§
impl Freeze for TextMessageV2
impl RefUnwindSafe for TextMessageV2
impl Send for TextMessageV2
impl Sync for TextMessageV2
impl Unpin for TextMessageV2
impl UnwindSafe for TextMessageV2
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