#[non_exhaustive]pub enum AnyStrippedStateEvent {
Show 27 variants
PolicyRuleRoom(StrippedPolicyRuleRoomEvent),
PolicyRuleServer(StrippedPolicyRuleServerEvent),
PolicyRuleUser(StrippedPolicyRuleUserEvent),
RoomAliases(StrippedRoomAliasesEvent),
RoomAvatar(StrippedRoomAvatarEvent),
RoomCanonicalAlias(StrippedRoomCanonicalAliasEvent),
RoomCreate(StrippedRoomCreateEvent),
RoomEncryption(StrippedRoomEncryptionEvent),
RoomEncrypted(StrippedStateRoomEncryptedEvent),
RoomGuestAccess(StrippedRoomGuestAccessEvent),
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent),
RoomJoinRules(StrippedRoomJoinRulesEvent),
RoomLanguage(StrippedRoomLanguageEvent),
RoomMember(StrippedRoomMemberEvent),
RoomName(StrippedRoomNameEvent),
RoomPinnedEvents(StrippedRoomPinnedEventsEvent),
RoomPowerLevels(StrippedRoomPowerLevelsEvent),
RoomServerAcl(StrippedRoomServerAclEvent),
RoomThirdPartyInvite(StrippedRoomThirdPartyInviteEvent),
RoomTombstone(StrippedRoomTombstoneEvent),
RoomTopic(StrippedRoomTopicEvent),
SpaceChild(StrippedSpaceChildEvent),
SpaceParent(StrippedSpaceParentEvent),
RoomImagePack(StrippedRoomImagePackEvent),
BeaconInfo(StrippedBeaconInfoEvent),
CallMember(StrippedCallMemberEvent),
MemberHints(StrippedMemberHintsEvent),
}Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(StrippedPolicyRuleRoomEvent)
m.policy.rule.room
PolicyRuleServer(StrippedPolicyRuleServerEvent)
m.policy.rule.server
PolicyRuleUser(StrippedPolicyRuleUserEvent)
m.policy.rule.user
RoomAliases(StrippedRoomAliasesEvent)
m.room.aliases
RoomAvatar(StrippedRoomAvatarEvent)
m.room.avatar
RoomCanonicalAlias(StrippedRoomCanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(StrippedRoomCreateEvent)
m.room.create
RoomEncryption(StrippedRoomEncryptionEvent)
m.room.encryption
RoomEncrypted(StrippedStateRoomEncryptedEvent)
m.room.encrypted
RoomGuestAccess(StrippedRoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(StrippedRoomJoinRulesEvent)
m.room.join_rules
RoomLanguage(StrippedRoomLanguageEvent)
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(StrippedRoomMemberEvent)
m.room.member
RoomName(StrippedRoomNameEvent)
m.room.name
RoomPinnedEvents(StrippedRoomPinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(StrippedRoomPowerLevelsEvent)
m.room.power_levels
RoomServerAcl(StrippedRoomServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(StrippedRoomThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(StrippedRoomTombstoneEvent)
m.room.tombstone
RoomTopic(StrippedRoomTopicEvent)
m.room.topic
SpaceChild(StrippedSpaceChildEvent)
m.space.child
SpaceParent(StrippedSpaceParentEvent)
m.space.parent
RoomImagePack(StrippedRoomImagePackEvent)
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(StrippedBeaconInfoEvent)
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(StrippedCallMemberEvent)
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(StrippedMemberHintsEvent)
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 AnyStrippedStateEvent
impl AnyStrippedStateEvent
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type of this event.
Trait Implementations§
Source§impl Clone for AnyStrippedStateEvent
impl Clone for AnyStrippedStateEvent
Source§fn clone(&self) -> AnyStrippedStateEvent
fn clone(&self) -> AnyStrippedStateEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyStrippedStateEvent
impl Debug for AnyStrippedStateEvent
Source§impl<'de> Deserialize<'de> for AnyStrippedStateEvent
impl<'de> Deserialize<'de> for AnyStrippedStateEvent
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<StrippedStateEvent<CallMemberEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc3401 only.
impl From<StrippedStateEvent<CallMemberEventContent>> for AnyStrippedStateEvent
unstable-msc3401 only.Source§fn from(c: StrippedCallMemberEvent) -> Self
fn from(c: StrippedCallMemberEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedBeaconInfoEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc3489 only.
impl From<StrippedStateEvent<PossiblyRedactedBeaconInfoEventContent>> for AnyStrippedStateEvent
unstable-msc3489 only.Source§fn from(c: StrippedBeaconInfoEvent) -> Self
fn from(c: StrippedBeaconInfoEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedMemberHintsEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc4171 only.
impl From<StrippedStateEvent<PossiblyRedactedMemberHintsEventContent>> for AnyStrippedStateEvent
unstable-msc4171 only.Source§fn from(c: StrippedMemberHintsEvent) -> Self
fn from(c: StrippedMemberHintsEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleRoomEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleRoomEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedPolicyRuleRoomEvent) -> Self
fn from(c: StrippedPolicyRuleRoomEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleServerEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleServerEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedPolicyRuleServerEvent) -> Self
fn from(c: StrippedPolicyRuleServerEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleUserEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleUserEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedPolicyRuleUserEvent) -> Self
fn from(c: StrippedPolicyRuleUserEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomAliasesEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomAliasesEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomAliasesEvent) -> Self
fn from(c: StrippedRoomAliasesEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomEncryptionEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomEncryptionEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomEncryptionEvent) -> Self
fn from(c: StrippedRoomEncryptionEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomGuestAccessEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomGuestAccessEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomGuestAccessEvent) -> Self
fn from(c: StrippedRoomGuestAccessEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomImagePackEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc2545 only.
impl From<StrippedStateEvent<PossiblyRedactedRoomImagePackEventContent>> for AnyStrippedStateEvent
unstable-msc2545 only.Source§fn from(c: StrippedRoomImagePackEvent) -> Self
fn from(c: StrippedRoomImagePackEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomLanguageEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc4334 only.
impl From<StrippedStateEvent<PossiblyRedactedRoomLanguageEventContent>> for AnyStrippedStateEvent
unstable-msc4334 only.Source§fn from(c: StrippedRoomLanguageEvent) -> Self
fn from(c: StrippedRoomLanguageEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomNameEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomNameEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomNameEvent) -> Self
fn from(c: StrippedRoomNameEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomPinnedEventsEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomPinnedEventsEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomPinnedEventsEvent) -> Self
fn from(c: StrippedRoomPinnedEventsEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomTombstoneEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomTombstoneEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomTombstoneEvent) -> Self
fn from(c: StrippedRoomTombstoneEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedRoomTopicEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomTopicEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedRoomTopicEvent) -> Self
fn from(c: StrippedRoomTopicEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedSpaceChildEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedSpaceChildEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedSpaceChildEvent) -> Self
fn from(c: StrippedSpaceChildEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedSpaceParentEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedSpaceParentEventContent>> for AnyStrippedStateEvent
Source§fn from(c: StrippedSpaceParentEvent) -> Self
fn from(c: StrippedSpaceParentEvent) -> Self
Source§impl From<StrippedStateEvent<PossiblyRedactedStateRoomEncryptedEventContent>> for AnyStrippedStateEvent
Available on crate feature unstable-msc3414 only.
impl From<StrippedStateEvent<PossiblyRedactedStateRoomEncryptedEventContent>> for AnyStrippedStateEvent
unstable-msc3414 only.