pub enum AnyStrippedStateEvent {
Show 23 variants
PolicyRuleRoom(StrippedPolicyRuleRoomEvent),
PolicyRuleServer(StrippedPolicyRuleServerEvent),
PolicyRuleUser(StrippedPolicyRuleUserEvent),
RoomAliases(StrippedRoomAliasesEvent),
RoomAvatar(StrippedRoomAvatarEvent),
RoomCanonicalAlias(StrippedRoomCanonicalAliasEvent),
RoomCreate(StrippedRoomCreateEvent),
RoomEncryption(StrippedRoomEncryptionEvent),
RoomGuestAccess(StrippedRoomGuestAccessEvent),
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent),
RoomJoinRules(StrippedRoomJoinRulesEvent),
RoomMember(StrippedRoomMemberEvent),
RoomName(StrippedRoomNameEvent),
RoomPinnedEvents(StrippedRoomPinnedEventsEvent),
RoomPowerLevels(StrippedRoomPowerLevelsEvent),
RoomServerAcl(StrippedRoomServerAclEvent),
RoomThirdPartyInvite(StrippedRoomThirdPartyInviteEvent),
RoomTombstone(StrippedRoomTombstoneEvent),
RoomTopic(StrippedRoomTopicEvent),
SpaceChild(StrippedSpaceChildEvent),
SpaceParent(StrippedSpaceParentEvent),
BeaconInfo(StrippedBeaconInfoEvent),
CallMember(StrippedCallMemberEvent),
// some variants omitted
}
Expand description
Any state event.
Variants§
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
RoomGuestAccess(StrippedRoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(StrippedRoomJoinRulesEvent)
m.room.join_rules
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
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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<StrippedStateEvent<CallMemberEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<CallMemberEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedCallMemberEvent) -> Self
fn from(c: StrippedCallMemberEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedBeaconInfoEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedBeaconInfoEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedBeaconInfoEvent) -> Self
fn from(c: StrippedBeaconInfoEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleRoomEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleRoomEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedPolicyRuleRoomEvent) -> Self
fn from(c: StrippedPolicyRuleRoomEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleServerEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleServerEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedPolicyRuleServerEvent) -> Self
fn from(c: StrippedPolicyRuleServerEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleUserEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedPolicyRuleUserEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedPolicyRuleUserEvent) -> Self
fn from(c: StrippedPolicyRuleUserEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomAliasesEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomAliasesEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomAliasesEvent) -> Self
fn from(c: StrippedRoomAliasesEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomEncryptionEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomEncryptionEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomEncryptionEvent) -> Self
fn from(c: StrippedRoomEncryptionEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomGuestAccessEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomGuestAccessEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomGuestAccessEvent) -> Self
fn from(c: StrippedRoomGuestAccessEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomNameEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomNameEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomNameEvent) -> Self
fn from(c: StrippedRoomNameEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomPinnedEventsEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomPinnedEventsEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomPinnedEventsEvent) -> Self
fn from(c: StrippedRoomPinnedEventsEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomTombstoneEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomTombstoneEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomTombstoneEvent) -> Self
fn from(c: StrippedRoomTombstoneEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedRoomTopicEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedRoomTopicEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomTopicEvent) -> Self
fn from(c: StrippedRoomTopicEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedSpaceChildEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedSpaceChildEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedSpaceChildEvent) -> Self
fn from(c: StrippedSpaceChildEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<PossiblyRedactedSpaceParentEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PossiblyRedactedSpaceParentEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedSpaceParentEvent) -> Self
fn from(c: StrippedSpaceParentEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomAvatarEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomAvatarEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomAvatarEvent) -> Self
fn from(c: StrippedRoomAvatarEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomCanonicalAliasEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomCanonicalAliasEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomCanonicalAliasEvent) -> Self
fn from(c: StrippedRoomCanonicalAliasEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomCreateEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomCreateEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomCreateEvent) -> Self
fn from(c: StrippedRoomCreateEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomHistoryVisibilityEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomHistoryVisibilityEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomHistoryVisibilityEvent) -> Self
fn from(c: StrippedRoomHistoryVisibilityEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomJoinRulesEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomJoinRulesEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomJoinRulesEvent) -> Self
fn from(c: StrippedRoomJoinRulesEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomMemberEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomMemberEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomMemberEvent) -> Self
fn from(c: StrippedRoomMemberEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomPowerLevelsEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomPowerLevelsEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomPowerLevelsEvent) -> Self
fn from(c: StrippedRoomPowerLevelsEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomServerAclEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomServerAclEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomServerAclEvent) -> Self
fn from(c: StrippedRoomServerAclEvent) -> Self
Converts to this type from the input type.
source§impl From<StrippedStateEvent<RoomThirdPartyInviteEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomThirdPartyInviteEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedRoomThirdPartyInviteEvent) -> Self
fn from(c: StrippedRoomThirdPartyInviteEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyStrippedStateEvent
impl RefUnwindSafe for AnyStrippedStateEvent
impl Send for AnyStrippedStateEvent
impl Sync for AnyStrippedStateEvent
impl Unpin for AnyStrippedStateEvent
impl UnwindSafe for AnyStrippedStateEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)