pub struct MessageEventContentWithoutRelation {
pub message: MessageContent,
}Available on crate features
events and unstable-msc1767 only.Expand description
Form of MessageEventContent without relation.
To construct this type, construct a MessageEventContent and then use one of its ::from() / .into() methods.
Fields§
§message: MessageContentThe message’s text content.
Implementations§
source§impl MessageEventContentWithoutRelation
impl MessageEventContentWithoutRelation
sourcepub fn with_relation(
self,
relates_to: Option<Relation<MessageEventContentWithoutRelation>>
) -> MessageEventContent
pub fn with_relation(
self,
relates_to: Option<Relation<MessageEventContentWithoutRelation>>
) -> MessageEventContent
Transform self into a MessageEventContent with the given relation.
Trait Implementations§
source§impl Clone for MessageEventContentWithoutRelation
impl Clone for MessageEventContentWithoutRelation
source§fn clone(&self) -> MessageEventContentWithoutRelation
fn clone(&self) -> MessageEventContentWithoutRelation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for MessageEventContentWithoutRelation
impl<'de> Deserialize<'de> for MessageEventContentWithoutRelation
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
source§impl From<MessageEventContent> for MessageEventContentWithoutRelation
impl From<MessageEventContent> for MessageEventContentWithoutRelation
source§fn from(c: MessageEventContent) -> Self
fn from(c: MessageEventContent) -> Self
Converts to this type from the input type.