#[non_exhaustive]pub enum AnyFullStateEventContent {
Show 24 variants
PolicyRuleRoom(FullStateEventContent<PolicyRuleRoomEventContent>),
PolicyRuleServer(FullStateEventContent<PolicyRuleServerEventContent>),
PolicyRuleUser(FullStateEventContent<PolicyRuleUserEventContent>),
RoomAliases(FullStateEventContent<RoomAliasesEventContent>),
RoomAvatar(FullStateEventContent<RoomAvatarEventContent>),
RoomCanonicalAlias(FullStateEventContent<RoomCanonicalAliasEventContent>),
RoomCreate(FullStateEventContent<RoomCreateEventContent>),
RoomEncryption(FullStateEventContent<RoomEncryptionEventContent>),
RoomGuestAccess(FullStateEventContent<RoomGuestAccessEventContent>),
RoomHistoryVisibility(FullStateEventContent<RoomHistoryVisibilityEventContent>),
RoomJoinRules(FullStateEventContent<RoomJoinRulesEventContent>),
RoomMember(FullStateEventContent<RoomMemberEventContent>),
RoomName(FullStateEventContent<RoomNameEventContent>),
RoomPinnedEvents(FullStateEventContent<RoomPinnedEventsEventContent>),
RoomPowerLevels(FullStateEventContent<RoomPowerLevelsEventContent>),
RoomServerAcl(FullStateEventContent<RoomServerAclEventContent>),
RoomThirdPartyInvite(FullStateEventContent<RoomThirdPartyInviteEventContent>),
RoomTombstone(FullStateEventContent<RoomTombstoneEventContent>),
RoomTopic(FullStateEventContent<RoomTopicEventContent>),
SpaceChild(FullStateEventContent<SpaceChildEventContent>),
SpaceParent(FullStateEventContent<SpaceParentEventContent>),
BeaconInfo(FullStateEventContent<BeaconInfoEventContent>),
CallMember(FullStateEventContent<CallMemberEventContent>),
MemberHints(FullStateEventContent<MemberHintsEventContent>),
}
Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(FullStateEventContent<PolicyRuleRoomEventContent>)
m.policy.rule.room
PolicyRuleServer(FullStateEventContent<PolicyRuleServerEventContent>)
m.policy.rule.server
PolicyRuleUser(FullStateEventContent<PolicyRuleUserEventContent>)
m.policy.rule.user
RoomAliases(FullStateEventContent<RoomAliasesEventContent>)
m.room.aliases
RoomAvatar(FullStateEventContent<RoomAvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(FullStateEventContent<RoomCanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(FullStateEventContent<RoomCreateEventContent>)
m.room.create
RoomEncryption(FullStateEventContent<RoomEncryptionEventContent>)
m.room.encryption
RoomGuestAccess(FullStateEventContent<RoomGuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(FullStateEventContent<RoomHistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(FullStateEventContent<RoomJoinRulesEventContent>)
m.room.join_rules
RoomMember(FullStateEventContent<RoomMemberEventContent>)
m.room.member
RoomName(FullStateEventContent<RoomNameEventContent>)
m.room.name
RoomPinnedEvents(FullStateEventContent<RoomPinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(FullStateEventContent<RoomPowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(FullStateEventContent<RoomServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(FullStateEventContent<RoomThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(FullStateEventContent<RoomTombstoneEventContent>)
m.room.tombstone
RoomTopic(FullStateEventContent<RoomTopicEventContent>)
m.room.topic
SpaceChild(FullStateEventContent<SpaceChildEventContent>)
m.space.child
SpaceParent(FullStateEventContent<SpaceParentEventContent>)
m.space.parent
BeaconInfo(FullStateEventContent<BeaconInfoEventContent>)
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(FullStateEventContent<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(FullStateEventContent<MemberHintsEventContent>)
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.
Implementations§
Source§impl AnyFullStateEventContent
impl AnyFullStateEventContent
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Get the event’s type, like m.room.create
.
Trait Implementations§
Source§impl Clone for AnyFullStateEventContent
impl Clone for AnyFullStateEventContent
Source§fn clone(&self) -> AnyFullStateEventContent
fn clone(&self) -> AnyFullStateEventContent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AnyFullStateEventContent
impl RefUnwindSafe for AnyFullStateEventContent
impl Send for AnyFullStateEventContent
impl Sync for AnyFullStateEventContent
impl Unpin for AnyFullStateEventContent
impl UnwindSafe for AnyFullStateEventContent
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
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