Struct ruma::events::emote::EmoteEventContent
source · pub struct EmoteEventContent {
pub message: MessageContent,
pub relates_to: Option<Relation<EmoteEventContentWithoutRelation>>,
}
Available on crate features
events
and unstable-msc1767
only.Expand description
Fields§
§message: MessageContent
The message’s text content.
relates_to: Option<Relation<EmoteEventContentWithoutRelation>>
Information about related messages.
Implementations§
source§impl EmoteEventContent
impl EmoteEventContent
Trait Implementations§
source§impl Clone for EmoteEventContent
impl Clone for EmoteEventContent
source§fn clone(&self) -> EmoteEventContent
fn clone(&self) -> EmoteEventContent
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 Debug for EmoteEventContent
impl Debug for EmoteEventContent
source§impl<'de> Deserialize<'de> for EmoteEventContent
impl<'de> Deserialize<'de> for EmoteEventContent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EmoteEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EmoteEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventContent for EmoteEventContent
impl EventContent for EmoteEventContent
§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
source§fn event_type(&self) -> <EmoteEventContent as EventContent>::EventType
fn event_type(&self) -> <EmoteEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.source§impl From<EmoteEventContent> for AnyMessageLikeEventContent
impl From<EmoteEventContent> for AnyMessageLikeEventContent
source§fn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
fn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<EmoteEventContent> for EmoteEventContentWithoutRelation
impl From<EmoteEventContent> for EmoteEventContentWithoutRelation
source§fn from(c: EmoteEventContent) -> EmoteEventContentWithoutRelation
fn from(c: EmoteEventContent) -> EmoteEventContentWithoutRelation
Converts to this type from the input type.
source§impl RedactContent for EmoteEventContent
impl RedactContent for EmoteEventContent
§type Redacted = RedactedEmoteEventContent
type Redacted = RedactedEmoteEventContent
The redacted form of the event’s content.
source§fn redact(self, version: &RoomVersionId) -> RedactedEmoteEventContent
fn redact(self, version: &RoomVersionId) -> RedactedEmoteEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moresource§impl Serialize for EmoteEventContent
impl Serialize for EmoteEventContent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more