Enum AnyPossiblyRedactedStateEventContent
#[non_exhaustive]pub enum AnyPossiblyRedactedStateEventContent {
Show 26 variants
PolicyRuleRoom(PossiblyRedactedPolicyRuleRoomEventContent),
PolicyRuleServer(PossiblyRedactedPolicyRuleServerEventContent),
PolicyRuleUser(PossiblyRedactedPolicyRuleUserEventContent),
RoomAliases(PossiblyRedactedRoomAliasesEventContent),
RoomAvatar(RoomAvatarEventContent),
RoomCanonicalAlias(RoomCanonicalAliasEventContent),
RoomCreate(RoomCreateEventContent),
RoomEncryption(PossiblyRedactedRoomEncryptionEventContent),
RoomGuestAccess(PossiblyRedactedRoomGuestAccessEventContent),
RoomHistoryVisibility(RoomHistoryVisibilityEventContent),
RoomJoinRules(RoomJoinRulesEventContent),
RoomLanguage(PossiblyRedactedRoomLanguageEventContent),
RoomMember(PossiblyRedactedRoomMemberEventContent),
RoomName(PossiblyRedactedRoomNameEventContent),
RoomPinnedEvents(PossiblyRedactedRoomPinnedEventsEventContent),
RoomPowerLevels(RoomPowerLevelsEventContent),
RoomServerAcl(RoomServerAclEventContent),
RoomThirdPartyInvite(PossiblyRedactedRoomThirdPartyInviteEventContent),
RoomTombstone(PossiblyRedactedRoomTombstoneEventContent),
RoomTopic(PossiblyRedactedRoomTopicEventContent),
SpaceChild(PossiblyRedactedSpaceChildEventContent),
SpaceParent(PossiblyRedactedSpaceParentEventContent),
RoomImagePack(PossiblyRedactedRoomImagePackEventContent),
BeaconInfo(PossiblyRedactedBeaconInfoEventContent),
CallMember(CallMemberEventContent),
MemberHints(PossiblyRedactedMemberHintsEventContent),
}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
RoomGuestAccess(PossiblyRedactedRoomGuestAccessEventContent)
m.room.guest_access
RoomHistoryVisibility(RoomHistoryVisibilityEventContent)
m.room.history_visibility
RoomJoinRules(RoomJoinRulesEventContent)
m.room.join_rules
RoomLanguage(PossiblyRedactedRoomLanguageEventContent)
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(PossiblyRedactedRoomThirdPartyInviteEventContent)
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)
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)
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)
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)
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§
§impl Clone for AnyPossiblyRedactedStateEventContent
impl Clone for AnyPossiblyRedactedStateEventContent
§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 more§impl EventContentFromType for AnyPossiblyRedactedStateEventContent
impl EventContentFromType for AnyPossiblyRedactedStateEventContent
§fn from_parts(
event_type: &str,
json: &RawValue,
) -> Result<AnyPossiblyRedactedStateEventContent, Error>
fn from_parts( event_type: &str, json: &RawValue, ) -> Result<AnyPossiblyRedactedStateEventContent, Error>
§impl From<CallMemberEventContent> for AnyPossiblyRedactedStateEventContent
impl From<CallMemberEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: CallMemberEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: CallMemberEventContent) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedBeaconInfoEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedBeaconInfoEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedBeaconInfoEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedBeaconInfoEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedMemberHintsEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedMemberHintsEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedMemberHintsEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedMemberHintsEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedPolicyRuleRoomEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleRoomEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedPolicyRuleRoomEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleRoomEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedPolicyRuleServerEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleServerEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedPolicyRuleServerEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleServerEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedPolicyRuleUserEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedPolicyRuleUserEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedPolicyRuleUserEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedPolicyRuleUserEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomAliasesEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomAliasesEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomAliasesEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomAliasesEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomEncryptionEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomEncryptionEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomEncryptionEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomEncryptionEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomGuestAccessEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomGuestAccessEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomGuestAccessEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomGuestAccessEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomImagePackEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomImagePackEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomImagePackEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomImagePackEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomLanguageEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomLanguageEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomLanguageEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomLanguageEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomMemberEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomMemberEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomMemberEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomMemberEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomNameEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomNameEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomNameEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomNameEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomPinnedEventsEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomPinnedEventsEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomPinnedEventsEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomPinnedEventsEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomThirdPartyInviteEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomThirdPartyInviteEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomThirdPartyInviteEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomThirdPartyInviteEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomTombstoneEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomTombstoneEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomTombstoneEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomTombstoneEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedRoomTopicEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedRoomTopicEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedRoomTopicEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedRoomTopicEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedSpaceChildEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedSpaceChildEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedSpaceChildEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedSpaceChildEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<PossiblyRedactedSpaceParentEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedSpaceParentEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: PossiblyRedactedSpaceParentEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedSpaceParentEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomAvatarEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomAvatarEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: RoomAvatarEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomAvatarEventContent) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomCanonicalAliasEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomCanonicalAliasEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: RoomCanonicalAliasEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: RoomCanonicalAliasEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomCreateEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomCreateEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: RoomCreateEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomCreateEventContent) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomHistoryVisibilityEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomHistoryVisibilityEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(
c: RoomHistoryVisibilityEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: RoomHistoryVisibilityEventContent, ) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomJoinRulesEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomJoinRulesEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: RoomJoinRulesEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomJoinRulesEventContent) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomPowerLevelsEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomPowerLevelsEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: RoomPowerLevelsEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomPowerLevelsEventContent) -> AnyPossiblyRedactedStateEventContent
§impl From<RoomServerAclEventContent> for AnyPossiblyRedactedStateEventContent
impl From<RoomServerAclEventContent> for AnyPossiblyRedactedStateEventContent
§fn from(c: RoomServerAclEventContent) -> AnyPossiblyRedactedStateEventContent
fn from(c: RoomServerAclEventContent) -> AnyPossiblyRedactedStateEventContent
§impl PossiblyRedactedStateEventContent for AnyPossiblyRedactedStateEventContent
impl PossiblyRedactedStateEventContent for AnyPossiblyRedactedStateEventContent
§fn event_type(&self) -> StateEventType
fn event_type(&self) -> StateEventType
m.room.name.§impl Serialize for AnyPossiblyRedactedStateEventContent
impl Serialize for AnyPossiblyRedactedStateEventContent
§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
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedBeaconInfoEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedMemberHintsEventContent
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
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomLanguageEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomMemberEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomNameEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomPinnedEventsEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomThirdPartyInviteEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomTombstoneEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomTopicEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedSpaceChildEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedSpaceParentEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomAvatarEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomCanonicalAliasEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomCreateEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomHistoryVisibilityEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomJoinRulesEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomPowerLevelsEventContent
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for RoomServerAclEventContent
impl JsonCastable<Map<String, Value>> for AnyPossiblyRedactedStateEventContent
Auto Trait Implementations§
impl Freeze for AnyPossiblyRedactedStateEventContent
impl RefUnwindSafe for AnyPossiblyRedactedStateEventContent
impl Send for AnyPossiblyRedactedStateEventContent
impl Sync for AnyPossiblyRedactedStateEventContent
impl Unpin for AnyPossiblyRedactedStateEventContent
impl UnwindSafe for AnyPossiblyRedactedStateEventContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more