Struct ruma_events::room::message::NoticeMessageEventContent [−][src]
pub struct NoticeMessageEventContent { pub body: String, pub formatted: Option<FormattedBody>, }
Expand description
The payload for a notice message.
Fields
body: String
The notice text.
formatted: Option<FormattedBody>
Formatted form of the message body
.
Implementations
A convenience constructor to create a plain text notice.
A convenience constructor to create an html notice.
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 NoticeMessageEventContent
impl Send for NoticeMessageEventContent
impl Sync for NoticeMessageEventContent
impl Unpin for NoticeMessageEventContent
impl UnwindSafe for NoticeMessageEventContent
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