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