#[non_exhaustive]pub enum AnyPossiblyRedactedStateEventContent {
Show 27 variants
PolicyRuleRoom(PossiblyRedactedPolicyRuleRoomEventContent),
PolicyRuleServer(PossiblyRedactedPolicyRuleServerEventContent),
PolicyRuleUser(PossiblyRedactedPolicyRuleUserEventContent),
RoomAliases(PossiblyRedactedRoomAliasesEventContent),
RoomAvatar(RoomAvatarEventContent),
RoomCanonicalAlias(RoomCanonicalAliasEventContent),
RoomCreate(RoomCreateEventContent),
RoomEncryption(PossiblyRedactedRoomEncryptionEventContent),
RoomEncrypted(PossiblyRedactedStateRoomEncryptedEventContent),
RoomGuestAccess(PossiblyRedactedRoomGuestAccessEventContent),
RoomHistoryVisibility(RoomHistoryVisibilityEventContent),
RoomJoinRules(RoomJoinRulesEventContent),
RoomLanguage(PossiblyRedactedRoomLanguageEventContent),
RoomMember(PossiblyRedactedRoomMemberEventContent),
RoomName(PossiblyRedactedRoomNameEventContent),
RoomPinnedEvents(PossiblyRedactedRoomPinnedEventsEventContent),
RoomPowerLevels(RoomPowerLevelsEventContent),
RoomServerAcl(RoomServerAclEventContent),
RoomThirdPartyInvite(RoomThirdPartyInviteEventContent),
RoomTombstone(PossiblyRedactedRoomTombstoneEventContent),
RoomTopic(PossiblyRedactedRoomTopicEventContent),
SpaceChild(PossiblyRedactedSpaceChildEventContent),
SpaceParent(PossiblyRedactedSpaceParentEventContent),
RoomImagePack(PossiblyRedactedRoomImagePackEventContent),
BeaconInfo(PossiblyRedactedBeaconInfoEventContent),
CallMember(CallMemberEventContent),
MemberHints(PossiblyRedactedMemberHintsEventContent),
}events only.Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(PossiblyRedactedPolicyRuleRoomEventContent)
m.policy.rule.room
PolicyRuleServer(PossiblyRedactedPolicyRuleServerEventContent)
m.policy.rule.server
PolicyRuleUser(PossiblyRedactedPolicyRuleUserEventContent)
m.policy.rule.user
RoomAliases(PossiblyRedactedRoomAliasesEventContent)
m.room.aliases
RoomAvatar(RoomAvatarEventContent)
m.room.avatar
RoomCanonicalAlias(RoomCanonicalAliasEventContent)
m.room.canonical_alias
RoomCreate(RoomCreateEventContent)
m.room.create
RoomEncryption(PossiblyRedactedRoomEncryptionEventContent)
m.room.encryption
RoomEncrypted(PossiblyRedactedStateRoomEncryptedEventContent)
unstable-msc4362 only.m.room.encrypted
RoomGuestAccess(PossiblyRedactedRoomGuestAccessEventContent)
m.room.guest_access
RoomHistoryVisibility(RoomHistoryVisibilityEventContent)
m.room.history_visibility
RoomJoinRules(RoomJoinRulesEventContent)
m.room.join_rules
RoomLanguage(PossiblyRedactedRoomLanguageEventContent)
unstable-msc4334 only.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(PossiblyRedactedRoomMemberEventContent)
m.room.member
RoomName(PossiblyRedactedRoomNameEventContent)
m.room.name
RoomPinnedEvents(PossiblyRedactedRoomPinnedEventsEventContent)
m.room.pinned_events
RoomPowerLevels(RoomPowerLevelsEventContent)
m.room.power_levels
RoomServerAcl(RoomServerAclEventContent)
m.room.server_acl
RoomThirdPartyInvite(RoomThirdPartyInviteEventContent)
m.room.third_party_invite
RoomTombstone(PossiblyRedactedRoomTombstoneEventContent)
m.room.tombstone
RoomTopic(PossiblyRedactedRoomTopicEventContent)
m.room.topic
SpaceChild(PossiblyRedactedSpaceChildEventContent)
m.space.child
SpaceParent(PossiblyRedactedSpaceParentEventContent)
m.space.parent
RoomImagePack(PossiblyRedactedRoomImagePackEventContent)
unstable-msc2545 only.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(PossiblyRedactedBeaconInfoEventContent)
unstable-msc3489 only.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(CallMemberEventContent)
unstable-msc3401 only.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(PossiblyRedactedMemberHintsEventContent)
unstable-msc4171 only.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.
Trait Implementations§
Source§impl Clone for AnyPossiblyRedactedStateEventContent
impl Clone for AnyPossiblyRedactedStateEventContent
Source§fn clone(&self) -> AnyPossiblyRedactedStateEventContent
fn clone(&self) -> AnyPossiblyRedactedStateEventContent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl EventContentFromType for AnyPossiblyRedactedStateEventContent
impl EventContentFromType for AnyPossiblyRedactedStateEventContent
Source§fn from_parts(
event_type: &str,
json: &RawValue,
) -> Result<AnyPossiblyRedactedStateEventContent, Error>
fn from_parts( event_type: &str, json: &RawValue, ) -> Result<AnyPossiblyRedactedStateEventContent, Error>
Source§impl From<CallMemberEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc3401 only.
impl From<CallMemberEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc3401 only.Source§fn from(c: CallMemberEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: CallMemberEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedBeaconInfoEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc3489 only.
impl From<PossiblyRedactedBeaconInfoEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc3489 only.Source§fn from(
c: PossiblyRedactedBeaconInfoEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedBeaconInfoEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedMemberHintsEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc4171 only.
impl From<PossiblyRedactedMemberHintsEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc4171 only.Source§fn from(
c: PossiblyRedactedMemberHintsEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedMemberHintsEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedPolicyRuleRoomEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleRoomEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedPolicyRuleRoomEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleRoomEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedPolicyRuleServerEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleServerEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedPolicyRuleServerEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleServerEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedPolicyRuleUserEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleUserEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedPolicyRuleUserEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleUserEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomAliasesEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomAliasesEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomAliasesEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomAliasesEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomEncryptionEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomEncryptionEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomEncryptionEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomEncryptionEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomGuestAccessEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomGuestAccessEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomGuestAccessEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomGuestAccessEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomImagePackEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc2545 only.
impl From<PossiblyRedactedRoomImagePackEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc2545 only.Source§fn from(
c: PossiblyRedactedRoomImagePackEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomImagePackEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomLanguageEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc4334 only.
impl From<PossiblyRedactedRoomLanguageEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc4334 only.Source§fn from(
c: PossiblyRedactedRoomLanguageEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomLanguageEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomMemberEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomMemberEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomMemberEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomMemberEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomNameEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomNameEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomNameEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomNameEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomPinnedEventsEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomPinnedEventsEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomPinnedEventsEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomPinnedEventsEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomTombstoneEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomTombstoneEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomTombstoneEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomTombstoneEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedRoomTopicEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomTopicEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedRoomTopicEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomTopicEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedSpaceChildEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedSpaceChildEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedSpaceChildEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedSpaceChildEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedSpaceParentEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedSpaceParentEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedSpaceParentEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedSpaceParentEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<PossiblyRedactedStateRoomEncryptedEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc4362 only.
impl From<PossiblyRedactedStateRoomEncryptedEventContent> for AnyPossiblyRedactedStateEventContent
unstable-msc4362 only.Source§fn from(
c: PossiblyRedactedStateRoomEncryptedEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedStateRoomEncryptedEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomAvatarEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomAvatarEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(c: RoomAvatarEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomAvatarEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomCanonicalAliasEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomCanonicalAliasEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: RoomCanonicalAliasEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: RoomCanonicalAliasEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomCreateEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomCreateEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(c: RoomCreateEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomCreateEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomHistoryVisibilityEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomHistoryVisibilityEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: RoomHistoryVisibilityEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: RoomHistoryVisibilityEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomJoinRulesEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomJoinRulesEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(c: RoomJoinRulesEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomJoinRulesEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomPowerLevelsEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomPowerLevelsEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(c: RoomPowerLevelsEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomPowerLevelsEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomServerAclEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomServerAclEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(c: RoomServerAclEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomServerAclEventContent) -> AnyPossiblyRedactedStateEventContent
Source§impl From<RoomThirdPartyInviteEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomThirdPartyInviteEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: RoomThirdPartyInviteEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: RoomThirdPartyInviteEventContent, ) -> AnyPossiblyRedactedStateEventContent
Source§impl PossiblyRedactedStateEventContent for AnyPossiblyRedactedStateEventContent
impl PossiblyRedactedStateEventContent for AnyPossiblyRedactedStateEventContent
Source§fn event_type(&self) -> StateEventType
fn event_type(&self) -> StateEventType
m.room.name.Source§impl Serialize for AnyPossiblyRedactedStateEventContent
impl Serialize for AnyPossiblyRedactedStateEventContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for CallMemberEventContent
unstable-msc3401 only.impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedBeaconInfoEventContent
unstable-msc3489 only.impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedMemberHintsEventContent
unstable-msc4171 only.impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedPolicyRuleRoomEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedPolicyRuleServerEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedPolicyRuleUserEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomAliasesEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomEncryptionEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomGuestAccessEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomImagePackEventContent
unstable-msc2545 only.impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomLanguageEventContent
unstable-msc4334 only.impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomMemberEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomNameEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomPinnedEventsEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomTombstoneEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomTopicEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedSpaceChildEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedSpaceParentEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
unstable-msc4362 only.