Enum ruma_events::AnySyncStateEvent [−][src]
pub enum AnySyncStateEvent {}Show 21 variants
PolicyRuleRoom(SyncStateEvent<RoomEventContent>), PolicyRuleServer(SyncStateEvent<ServerEventContent>), PolicyRuleUser(SyncStateEvent<UserEventContent>), RoomAliases(SyncStateEvent<AliasesEventContent>), RoomAvatar(SyncStateEvent<AvatarEventContent>), RoomCanonicalAlias(SyncStateEvent<CanonicalAliasEventContent>), RoomCreate(SyncStateEvent<CreateEventContent>), RoomEncryption(SyncStateEvent<EncryptionEventContent>), RoomGuestAccess(SyncStateEvent<GuestAccessEventContent>), RoomHistoryVisibility(SyncStateEvent<HistoryVisibilityEventContent>), RoomJoinRules(SyncStateEvent<JoinRulesEventContent>), RoomMember(SyncStateEvent<MemberEventContent>), RoomName(SyncStateEvent<NameEventContent>), RoomPinnedEvents(SyncStateEvent<PinnedEventsEventContent>), RoomPowerLevels(SyncStateEvent<PowerLevelsEventContent>), RoomServerAcl(SyncStateEvent<ServerAclEventContent>), RoomThirdPartyInvite(SyncStateEvent<ThirdPartyInviteEventContent>), RoomTombstone(SyncStateEvent<TombstoneEventContent>), RoomTopic(SyncStateEvent<TopicEventContent>), SpaceChild(SyncStateEvent<ChildEventContent>), SpaceParent(SyncStateEvent<ParentEventContent>), // some variants omitted
Expand description
Any state event.
Variants
m.policy.rule.room
Tuple Fields of PolicyRuleRoom
m.policy.rule.server
Tuple Fields of PolicyRuleServer
m.policy.rule.user
Tuple Fields of PolicyRuleUser
m.room.aliases
Tuple Fields of RoomAliases
m.room.avatar
Tuple Fields of RoomAvatar
m.room.canonical_alias
Tuple Fields of RoomCanonicalAlias
m.room.create
Tuple Fields of RoomCreate
m.room.encryption
Tuple Fields of RoomEncryption
m.room.guest_access
Tuple Fields of RoomGuestAccess
m.room.history_visibility
Tuple Fields of RoomHistoryVisibility
m.room.join_rules
Tuple Fields of RoomJoinRules
m.room.member
Tuple Fields of RoomMember
m.room.name
Tuple Fields of RoomName
m.room.pinned_events
Tuple Fields of RoomPinnedEvents
m.room.power_levels
Tuple Fields of RoomPowerLevels
m.room.server_acl
Tuple Fields of RoomServerAcl
m.room.third_party_invite
Tuple Fields of RoomThirdPartyInvite
m.room.tombstone
Tuple Fields of RoomTombstone
m.room.topic
Tuple Fields of RoomTopic
unstable-pre-spec
only.m.space.child
Tuple Fields of SpaceChild
unstable-pre-spec
only.m.space.parent
Tuple Fields of SpaceParent
Implementations
Convert this sync event into a full event, one with a room_id field.
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.
The redacted form of the event.
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncStateEvent
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncStateEvent
Transforms self
into a redacted form (removing most fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnySyncStateEvent
impl Send for AnySyncStateEvent
impl Sync for AnySyncStateEvent
impl Unpin for AnySyncStateEvent
impl UnwindSafe for AnySyncStateEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more