Available on crate features
events
and unstable-msc1767
only.Expand description
Text message content.
Fields
mimetype: String
The MIME type of the body
.
This must follow the format defined in RFC6838.
body: String
The text content.
lang: Option<String>
Available on crate feature
unstable-msc3554
only.Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
sourcefn 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 Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more