#[non_exhaustive]pub enum AnyFullStateEventContent {
Show 23 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>),
}
Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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>)
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>)
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 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
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 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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)