Struct ruma_common::events::message::Text
source · pub struct Text {
pub mimetype: String,
pub body: String,
pub lang: Option<String>,
}Available on crate features
events and unstable-msc1767 only.Expand description
Text message content.
Fields§
§mimetype: StringThe MIME type of the body.
This must follow the format defined in RFC6838.
body: StringThe text content.
lang: Option<String>Available on crate feature
unstable-msc3554 only.Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
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