pub struct TextMessageContent {
pub type: Option<String>,
pub id: String,
pub text: String,
pub emojis: Option<Vec<Emoji>>,
pub mention: Option<Box<Mention>>,
pub quote_token: String,
pub quoted_message_id: Option<String>,
}Fields§
§type: Option<String>Type
id: StringMessage ID
text: StringMessage text.
emojis: Option<Vec<Emoji>>Array of one or more LINE emoji objects. Only included in the message event when the text property contains a LINE emoji.
mention: Option<Box<Mention>>§quote_token: StringQuote token to quote this message.
quoted_message_id: Option<String>Message ID of a quoted message. Only included when the received message quotes a past message.
Implementations§
Trait Implementations§
Source§impl Clone for TextMessageContent
impl Clone for TextMessageContent
Source§fn clone(&self) -> TextMessageContent
fn clone(&self) -> TextMessageContent
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 TextMessageContent
impl Debug for TextMessageContent
Source§impl Default for TextMessageContent
impl Default for TextMessageContent
Source§fn default() -> TextMessageContent
fn default() -> TextMessageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextMessageContent
impl<'de> Deserialize<'de> for TextMessageContent
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 TextMessageContent
impl PartialEq for TextMessageContent
Source§impl Serialize for TextMessageContent
impl Serialize for TextMessageContent
impl StructuralPartialEq for TextMessageContent
Auto Trait Implementations§
impl Freeze for TextMessageContent
impl RefUnwindSafe for TextMessageContent
impl Send for TextMessageContent
impl Sync for TextMessageContent
impl Unpin for TextMessageContent
impl UnwindSafe for TextMessageContent
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