#[non_exhaustive]pub enum AnySyncStateEvent {
Show 27 variants
    PolicyRuleRoom(SyncStateEvent<PolicyRuleRoomEventContent>),
    PolicyRuleServer(SyncStateEvent<PolicyRuleServerEventContent>),
    PolicyRuleUser(SyncStateEvent<PolicyRuleUserEventContent>),
    RoomAliases(SyncStateEvent<RoomAliasesEventContent>),
    RoomAvatar(SyncStateEvent<RoomAvatarEventContent>),
    RoomCanonicalAlias(SyncStateEvent<RoomCanonicalAliasEventContent>),
    RoomCreate(SyncStateEvent<RoomCreateEventContent>),
    RoomEncryption(SyncStateEvent<RoomEncryptionEventContent>),
    RoomEncrypted(SyncStateEvent<StateRoomEncryptedEventContent>),
    RoomGuestAccess(SyncStateEvent<RoomGuestAccessEventContent>),
    RoomHistoryVisibility(SyncStateEvent<RoomHistoryVisibilityEventContent>),
    RoomJoinRules(SyncStateEvent<RoomJoinRulesEventContent>),
    RoomLanguage(SyncStateEvent<RoomLanguageEventContent>),
    RoomMember(SyncStateEvent<RoomMemberEventContent>),
    RoomName(SyncStateEvent<RoomNameEventContent>),
    RoomPinnedEvents(SyncStateEvent<RoomPinnedEventsEventContent>),
    RoomPowerLevels(SyncStateEvent<RoomPowerLevelsEventContent>),
    RoomServerAcl(SyncStateEvent<RoomServerAclEventContent>),
    RoomThirdPartyInvite(SyncStateEvent<RoomThirdPartyInviteEventContent>),
    RoomTombstone(SyncStateEvent<RoomTombstoneEventContent>),
    RoomTopic(SyncStateEvent<RoomTopicEventContent>),
    SpaceChild(SyncStateEvent<SpaceChildEventContent>),
    SpaceParent(SyncStateEvent<SpaceParentEventContent>),
    RoomImagePack(SyncStateEvent<RoomImagePackEventContent>),
    BeaconInfo(SyncStateEvent<BeaconInfoEventContent>),
    CallMember(SyncStateEvent<CallMemberEventContent>),
    MemberHints(SyncStateEvent<MemberHintsEventContent>),
}events only.Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(SyncStateEvent<PolicyRuleRoomEventContent>)
m.policy.rule.room
PolicyRuleServer(SyncStateEvent<PolicyRuleServerEventContent>)
m.policy.rule.server
PolicyRuleUser(SyncStateEvent<PolicyRuleUserEventContent>)
m.policy.rule.user
RoomAliases(SyncStateEvent<RoomAliasesEventContent>)
m.room.aliases
RoomAvatar(SyncStateEvent<RoomAvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(SyncStateEvent<RoomCanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(SyncStateEvent<RoomCreateEventContent>)
m.room.create
RoomEncryption(SyncStateEvent<RoomEncryptionEventContent>)
m.room.encryption
RoomEncrypted(SyncStateEvent<StateRoomEncryptedEventContent>)
m.room.encrypted
RoomGuestAccess(SyncStateEvent<RoomGuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(SyncStateEvent<RoomHistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(SyncStateEvent<RoomJoinRulesEventContent>)
m.room.join_rules
RoomLanguage(SyncStateEvent<RoomLanguageEventContent>)
m.room.language
This variant uses the unstable type org.matrix.msc4334.room.language.
This variant can also be deserialized from the m.room.language type.
RoomMember(SyncStateEvent<RoomMemberEventContent>)
m.room.member
RoomName(SyncStateEvent<RoomNameEventContent>)
m.room.name
RoomPinnedEvents(SyncStateEvent<RoomPinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(SyncStateEvent<RoomPowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(SyncStateEvent<RoomServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(SyncStateEvent<RoomThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(SyncStateEvent<RoomTombstoneEventContent>)
m.room.tombstone
RoomTopic(SyncStateEvent<RoomTopicEventContent>)
m.room.topic
SpaceChild(SyncStateEvent<SpaceChildEventContent>)
m.space.child
SpaceParent(SyncStateEvent<SpaceParentEventContent>)
m.space.parent
RoomImagePack(SyncStateEvent<RoomImagePackEventContent>)
m.image_pack
This variant uses the unstable type im.ponies.room_emotes.
This variant can also be deserialized from the m.image_pack type.
BeaconInfo(SyncStateEvent<BeaconInfoEventContent>)
m.beacon_info
This variant uses the unstable type org.matrix.msc3672.beacon_info.
This variant can also be deserialized from the m.beacon_info type.
CallMember(SyncStateEvent<CallMemberEventContent>)
m.call.member
This variant uses the unstable type org.matrix.msc3401.call.member.
This variant can also be deserialized from the m.call.member type.
MemberHints(SyncStateEvent<MemberHintsEventContent>)
m.member_hints
This variant uses the unstable type io.element.functional_members.
This variant can also be deserialized from the m.member_hints type.
Implementations§
Source§impl AnySyncStateEvent
 
impl AnySyncStateEvent
Sourcepub fn event_type(&self) -> StateEventType
 
pub fn event_type(&self) -> StateEventType
Returns the type of this event.
Sourcepub fn original_content(&self) -> Option<AnyStateEventContent>
 
pub fn original_content(&self) -> Option<AnyStateEventContent>
Returns the content for this event if it is not redacted, or None if it is.
Sourcepub fn is_redacted(&self) -> bool
 
pub fn is_redacted(&self) -> bool
Returns whether this event is redacted.
Sourcepub fn content(&self) -> AnyFullStateEventContent
 
pub fn content(&self) -> AnyFullStateEventContent
Returns the content of this state event.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
 
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts field.
Sourcepub fn transaction_id(&self) -> Option<&TransactionId>
 
pub fn transaction_id(&self) -> Option<&TransactionId>
Returns this event’s transaction_id from inside unsigned, if there is one.
Source§impl AnySyncStateEvent
 
impl AnySyncStateEvent
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> AnyStateEvent
 
pub fn into_full_event(self, room_id: OwnedRoomId) -> AnyStateEvent
Convert this sync event into a full event (one with a room_id field).
Trait Implementations§
Source§impl Clone for AnySyncStateEvent
 
impl Clone for AnySyncStateEvent
Source§fn clone(&self) -> AnySyncStateEvent
 
fn clone(&self) -> AnySyncStateEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more