Enum ruma_events::AnyStateEvent [−][src]
pub enum AnyStateEvent {}Show 21 variants
PolicyRuleRoom(RoomEvent), PolicyRuleServer(ServerEvent), PolicyRuleUser(UserEvent), RoomAliases(AliasesEvent), RoomAvatar(AvatarEvent), RoomCanonicalAlias(CanonicalAliasEvent), RoomCreate(CreateEvent), RoomEncryption(EncryptionEvent), RoomGuestAccess(GuestAccessEvent), RoomHistoryVisibility(HistoryVisibilityEvent), RoomJoinRules(JoinRulesEvent), RoomMember(MemberEvent), RoomName(NameEvent), RoomPinnedEvents(PinnedEventsEvent), RoomPowerLevels(PowerLevelsEvent), RoomServerAcl(ServerAclEvent), RoomThirdPartyInvite(ThirdPartyInviteEvent), RoomTombstone(TombstoneEvent), RoomTopic(TopicEvent), SpaceChild(ChildEvent), SpaceParent(ParentEvent), // some variants omitted
Expand description
Any state event.
Variants
PolicyRuleRoom(RoomEvent)
m.policy.rule.room
PolicyRuleServer(ServerEvent)
m.policy.rule.server
PolicyRuleUser(UserEvent)
m.policy.rule.user
RoomAliases(AliasesEvent)
m.room.aliases
RoomAvatar(AvatarEvent)
m.room.avatar
RoomCanonicalAlias(CanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(CreateEvent)
m.room.create
RoomEncryption(EncryptionEvent)
m.room.encryption
RoomGuestAccess(GuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(HistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(JoinRulesEvent)
m.room.join_rules
RoomMember(MemberEvent)
m.room.member
RoomName(NameEvent)
m.room.name
RoomPinnedEvents(PinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(PowerLevelsEvent)
m.room.power_levels
RoomServerAcl(ServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(ThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(TombstoneEvent)
m.room.tombstone
RoomTopic(TopicEvent)
m.room.topic
SpaceChild(ChildEvent)
unstable-pre-spec
only.m.space.child
SpaceParent(ParentEvent)
unstable-pre-spec
only.m.space.parent
Implementations
Returns the any content enum for this event.
Returns the type
of this event.
Returns the any content enum for this events prev_content.
Returns this event’s origin_server_ts field.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
type Redacted = AnyRedactedStateEvent
type Redacted = AnyRedactedStateEvent
The redacted form of the event.
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedStateEvent
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedStateEvent
Transforms self
into a redacted form (removing most fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnyStateEvent
impl Send for AnyStateEvent
impl Sync for AnyStateEvent
impl Unpin for AnyStateEvent
impl UnwindSafe for AnyStateEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V