Enum ruma_events::AnySyncStateEvent [−][src]
pub enum AnySyncStateEvent {
Show 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
PolicyRuleRoom(SyncStateEvent<RoomEventContent>)m.policy.rule.room
PolicyRuleServer(SyncStateEvent<ServerEventContent>)m.policy.rule.server
PolicyRuleUser(SyncStateEvent<UserEventContent>)m.policy.rule.user
RoomAliases(SyncStateEvent<AliasesEventContent>)m.room.aliases
RoomAvatar(SyncStateEvent<AvatarEventContent>)m.room.avatar
RoomCanonicalAlias(SyncStateEvent<CanonicalAliasEventContent>)m.room.canonical_alias
RoomCreate(SyncStateEvent<CreateEventContent>)m.room.create
RoomEncryption(SyncStateEvent<EncryptionEventContent>)m.room.encryption
RoomGuestAccess(SyncStateEvent<GuestAccessEventContent>)m.room.guest_access
RoomHistoryVisibility(SyncStateEvent<HistoryVisibilityEventContent>)m.room.history_visibility
RoomJoinRules(SyncStateEvent<JoinRulesEventContent>)m.room.join_rules
RoomMember(SyncStateEvent<MemberEventContent>)m.room.member
RoomName(SyncStateEvent<NameEventContent>)m.room.name
RoomPinnedEvents(SyncStateEvent<PinnedEventsEventContent>)m.room.pinned_events
RoomPowerLevels(SyncStateEvent<PowerLevelsEventContent>)m.room.power_levels
RoomServerAcl(SyncStateEvent<ServerAclEventContent>)m.room.server_acl
RoomThirdPartyInvite(SyncStateEvent<ThirdPartyInviteEventContent>)m.room.third_party_invite
RoomTombstone(SyncStateEvent<TombstoneEventContent>)m.room.tombstone
RoomTopic(SyncStateEvent<TopicEventContent>)m.room.topic
SpaceChild(SyncStateEvent<ChildEventContent>)unstable-pre-spec only.m.space.child
SpaceParent(SyncStateEvent<ParentEventContent>)unstable-pre-spec only.m.space.parent
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
) -> AnyRedactedSyncStateEventTransforms self into a redacted form (removing most fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnySyncStateEventimpl Send for AnySyncStateEventimpl Sync for AnySyncStateEventimpl Unpin for AnySyncStateEventimpl UnwindSafe for AnySyncStateEventBlanket 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