Struct ruma_events::room::message::EmoteMessageEventContent [−][src]
pub struct EmoteMessageEventContent { pub body: String, pub formatted: Option<FormattedBody>, }
Expand description
The payload for an emote message.
Fields
body: String
The emote action to perform.
formatted: Option<FormattedBody>
Formatted form of the message body
.
Implementations
A convenience constructor to create a plain-text emote.
A convenience constructor to create an html emote message.
Trait Implementations
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 RefUnwindSafe for EmoteMessageEventContent
impl Send for EmoteMessageEventContent
impl Sync for EmoteMessageEventContent
impl Unpin for EmoteMessageEventContent
impl UnwindSafe for EmoteMessageEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V