Enum ruma::events::AnyStateEventContent [−][src]
pub enum AnyStateEventContent {
Show 21 variants
PolicyRuleRoom(RoomEventContent),
PolicyRuleServer(ServerEventContent),
PolicyRuleUser(UserEventContent),
RoomAliases(AliasesEventContent),
RoomAvatar(AvatarEventContent),
RoomCanonicalAlias(CanonicalAliasEventContent),
RoomCreate(CreateEventContent),
RoomEncryption(EncryptionEventContent),
RoomGuestAccess(GuestAccessEventContent),
RoomHistoryVisibility(HistoryVisibilityEventContent),
RoomJoinRules(JoinRulesEventContent),
RoomMember(MemberEventContent),
RoomName(NameEventContent),
RoomPinnedEvents(PinnedEventsEventContent),
RoomPowerLevels(PowerLevelsEventContent),
RoomServerAcl(ServerAclEventContent),
RoomThirdPartyInvite(ThirdPartyInviteEventContent),
RoomTombstone(TombstoneEventContent),
RoomTopic(TopicEventContent),
SpaceChild(ChildEventContent),
SpaceParent(ParentEventContent),
// some variants omitted
}
events
only.Expand description
Any state event.
Variants
PolicyRuleRoom(RoomEventContent)
m.policy.rule.room
PolicyRuleServer(ServerEventContent)
m.policy.rule.server
PolicyRuleUser(UserEventContent)
m.policy.rule.user
RoomAliases(AliasesEventContent)
m.room.aliases
RoomAvatar(AvatarEventContent)
m.room.avatar
RoomCanonicalAlias(CanonicalAliasEventContent)
m.room.canonical_alias
RoomCreate(CreateEventContent)
m.room.create
RoomEncryption(EncryptionEventContent)
m.room.encryption
RoomGuestAccess(GuestAccessEventContent)
m.room.guest_access
RoomHistoryVisibility(HistoryVisibilityEventContent)
m.room.history_visibility
RoomJoinRules(JoinRulesEventContent)
m.room.join_rules
RoomMember(MemberEventContent)
m.room.member
RoomName(NameEventContent)
m.room.name
RoomPinnedEvents(PinnedEventsEventContent)
m.room.pinned_events
RoomPowerLevels(PowerLevelsEventContent)
m.room.power_levels
RoomServerAcl(ServerAclEventContent)
m.room.server_acl
RoomThirdPartyInvite(ThirdPartyInviteEventContent)
m.room.third_party_invite
RoomTombstone(TombstoneEventContent)
m.room.tombstone
RoomTopic(TopicEventContent)
m.room.topic
SpaceChild(ChildEventContent)
m.space.child
SpaceParent(ParentEventContent)
m.space.parent
Trait Implementations
A matrix event identifier, like m.room.message
.
Constructs the given event content.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Redacts Self
given a RoomVersionId
.
The redacted form of the event’s content.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for AnyStateEventContent
impl Send for AnyStateEventContent
impl Sync for AnyStateEventContent
impl Unpin for AnyStateEventContent
impl UnwindSafe for AnyStateEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more