pub struct TextMessage {
pub type: Option<String>,
pub quick_reply: Option<Box<QuickReply>>,
pub sender: Option<Box<Sender>>,
pub text: String,
pub emojis: Option<Vec<Emoji>>,
pub quote_token: Option<String>,
}
Fields§
§type: Option<String>
Type of message
quick_reply: Option<Box<QuickReply>>
§sender: Option<Box<Sender>>
§text: String
§emojis: Option<Vec<Emoji>>
§quote_token: Option<String>
Quote token of the message you want to quote.
Implementations§
Source§impl TextMessage
impl TextMessage
pub fn new(type: String, text: String) -> TextMessage
Trait Implementations§
Source§impl Clone for TextMessage
impl Clone for TextMessage
Source§fn clone(&self) -> TextMessage
fn clone(&self) -> TextMessage
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 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
Source§impl Serialize for TextMessage
impl Serialize 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