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
PolicyRuleRoom(SyncStateEvent<RoomEventContent>)
m.policy.rule.room
Tuple Fields of PolicyRuleRoom
PolicyRuleServer(SyncStateEvent<ServerEventContent>)
m.policy.rule.server
Tuple Fields of PolicyRuleServer
PolicyRuleUser(SyncStateEvent<UserEventContent>)
m.policy.rule.user
Tuple Fields of PolicyRuleUser
RoomAliases(SyncStateEvent<AliasesEventContent>)
m.room.aliases
Tuple Fields of RoomAliases
RoomAvatar(SyncStateEvent<AvatarEventContent>)
m.room.avatar
Tuple Fields of RoomAvatar
RoomCanonicalAlias(SyncStateEvent<CanonicalAliasEventContent>)
m.room.canonical_alias
Tuple Fields of RoomCanonicalAlias
RoomCreate(SyncStateEvent<CreateEventContent>)
m.room.create
Tuple Fields of RoomCreate
RoomEncryption(SyncStateEvent<EncryptionEventContent>)
m.room.encryption
Tuple Fields of RoomEncryption
RoomGuestAccess(SyncStateEvent<GuestAccessEventContent>)
m.room.guest_access
Tuple Fields of RoomGuestAccess
RoomHistoryVisibility(SyncStateEvent<HistoryVisibilityEventContent>)
m.room.history_visibility
Tuple Fields of RoomHistoryVisibility
RoomJoinRules(SyncStateEvent<JoinRulesEventContent>)
m.room.join_rules
Tuple Fields of RoomJoinRules
RoomMember(SyncStateEvent<MemberEventContent>)
m.room.member
Tuple Fields of RoomMember
RoomName(SyncStateEvent<NameEventContent>)
m.room.name
Tuple Fields of RoomName
RoomPinnedEvents(SyncStateEvent<PinnedEventsEventContent>)
m.room.pinned_events
Tuple Fields of RoomPinnedEvents
RoomPowerLevels(SyncStateEvent<PowerLevelsEventContent>)
m.room.power_levels
Tuple Fields of RoomPowerLevels
RoomServerAcl(SyncStateEvent<ServerAclEventContent>)
m.room.server_acl
Tuple Fields of RoomServerAcl
RoomThirdPartyInvite(SyncStateEvent<ThirdPartyInviteEventContent>)
m.room.third_party_invite
Tuple Fields of RoomThirdPartyInvite
RoomTombstone(SyncStateEvent<TombstoneEventContent>)
m.room.tombstone
Tuple Fields of RoomTombstone
RoomTopic(SyncStateEvent<TopicEventContent>)
m.room.topic
Tuple Fields of RoomTopic
SpaceChild(SyncStateEvent<ChildEventContent>)
unstable-pre-spec
only.m.space.child
Tuple Fields of SpaceChild
SpaceParent(SyncStateEvent<ParentEventContent>)
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.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<SyncStateEvent<ChildEventContent>> for AnySyncStateEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncStateEvent<ChildEventContent>> for AnySyncStateEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<SyncStateEvent<ParentEventContent>> for AnySyncStateEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<SyncStateEvent<ParentEventContent>> for AnySyncStateEvent
unstable-pre-spec
only.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.
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
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