pub struct NormalizedMessage {Show 15 fields
pub message_id: String,
pub chat_id: String,
pub chat_type: MessageChatType,
pub sender_id: String,
pub sender: MessageSenderInfo,
pub message_type: String,
pub text: String,
pub raw_content: String,
pub content: Option<Value>,
pub root_id: Option<String>,
pub parent_id: Option<String>,
pub thread_id: Option<String>,
pub mentions: Vec<MessageMention>,
pub resources: Vec<ResourceDescriptor>,
pub raw: Value,
}Fields§
§message_id: String§chat_id: String§chat_type: MessageChatType§sender_id: String§sender: MessageSenderInfo§message_type: String§text: String§raw_content: String§content: Option<Value>§root_id: Option<String>§parent_id: Option<String>§thread_id: Option<String>§mentions: Vec<MessageMention>§resources: Vec<ResourceDescriptor>§raw: ValueImplementations§
Source§impl NormalizedMessage
impl NormalizedMessage
pub fn mentions_bot(&self, bot_open_id: &str) -> bool
Trait Implementations§
Source§impl Clone for NormalizedMessage
impl Clone for NormalizedMessage
Source§fn clone(&self) -> NormalizedMessage
fn clone(&self) -> NormalizedMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalizedMessage
impl Debug for NormalizedMessage
Source§impl<'de> Deserialize<'de> for NormalizedMessage
impl<'de> Deserialize<'de> for NormalizedMessage
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 NormalizedMessage
impl PartialEq for NormalizedMessage
Source§impl Serialize for NormalizedMessage
impl Serialize for NormalizedMessage
impl StructuralPartialEq for NormalizedMessage
Auto Trait Implementations§
impl Freeze for NormalizedMessage
impl RefUnwindSafe for NormalizedMessage
impl Send for NormalizedMessage
impl Sync for NormalizedMessage
impl Unpin for NormalizedMessage
impl UnsafeUnpin for NormalizedMessage
impl UnwindSafe for NormalizedMessage
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