Struct ruma_events::room::message::FormattedBody [−][src]
pub struct FormattedBody { pub format: MessageFormat, pub body: String, }
Expand description
Common message event content fields for message types that have separate plain-text and formatted representations.
Fields
format: MessageFormat
The format used in the formatted_body
.
body: String
The formatted version of the body
.
Implementations
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 FormattedBody
impl Send for FormattedBody
impl Sync for FormattedBody
impl Unpin for FormattedBody
impl UnwindSafe for FormattedBody
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