pub struct TextMessageContent {
pub type: 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>,
pub mark_as_read_token: Option<String>,
}Fields§
§type: StringType
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.
mark_as_read_token: Option<String>Token used to mark the message as read.
Implementations§
Trait Implementations§
Source§impl Clone for TextMessageContent
impl Clone for TextMessageContent
Source§impl Debug for TextMessageContent
impl Debug for TextMessageContent
Source§impl Default for TextMessageContent
impl Default for TextMessageContent
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 From<TextMessageContent> for MessageContent
impl From<TextMessageContent> for MessageContent
Source§fn from(value: TextMessageContent) -> Self
fn from(value: TextMessageContent) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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