Enum ruma_common::events::AnyStrippedStateEvent
source · pub enum AnyStrippedStateEvent {
Show 21 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),
// some variants omitted
}Available on crate feature
events only.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
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<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<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<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<RoomNameEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomNameEventContent>> 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<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.
source§impl From<StrippedStateEvent<SpaceChildEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<SpaceChildEventContent>> 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<SpaceParentEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<SpaceParentEventContent>> for AnyStrippedStateEvent
source§fn from(c: StrippedSpaceParentEvent) -> Self
fn from(c: StrippedSpaceParentEvent) -> Self
Converts to this type from the input type.