Struct ruma_common::events::room::message::TextMessageEventContent
source · pub struct TextMessageEventContent {
pub body: String,
pub formatted: Option<FormattedBody>,
}Available on crate feature
events only.Expand description
The payload for a text message.
Fields§
§body: StringThe body of the message.
formatted: Option<FormattedBody>Formatted form of the message body.
Implementations§
Trait Implementations§
source§impl Clone for TextMessageEventContent
impl Clone for TextMessageEventContent
source§fn clone(&self) -> TextMessageEventContent
fn clone(&self) -> TextMessageEventContent
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 TextMessageEventContent
impl Debug for TextMessageEventContent
source§impl<'de> Deserialize<'de> for TextMessageEventContent
impl<'de> Deserialize<'de> for TextMessageEventContent
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