pub struct MatrixMessageContent {
pub msgtype: Option<String>,
pub body: Option<String>,
pub url: Option<String>,
pub info: Option<MediaInfo>,
pub formatted_body: Option<String>,
pub relates_to: Option<RelatesTo>,
}Expand description
Matrix message content.
Fields§
§msgtype: Option<String>Message type (e.g., “m.text”, “m.image”).
body: Option<String>Message body.
url: Option<String>Media URL (for m.image, m.video, etc.).
info: Option<MediaInfo>Media info.
formatted_body: Option<String>Formatted body (HTML).
relates_to: Option<RelatesTo>Relations (replies, threads).
Trait Implementations§
Source§impl Clone for MatrixMessageContent
impl Clone for MatrixMessageContent
Source§fn clone(&self) -> MatrixMessageContent
fn clone(&self) -> MatrixMessageContent
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 MatrixMessageContent
impl Debug for MatrixMessageContent
Source§impl<'de> Deserialize<'de> for MatrixMessageContent
impl<'de> Deserialize<'de> for MatrixMessageContent
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
Auto Trait Implementations§
impl Freeze for MatrixMessageContent
impl RefUnwindSafe for MatrixMessageContent
impl Send for MatrixMessageContent
impl Sync for MatrixMessageContent
impl Unpin for MatrixMessageContent
impl UnwindSafe for MatrixMessageContent
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