#[non_exhaustive]pub enum AnyInitialStateEvent {
Show 27 variants
PolicyRuleRoom(InitialPolicyRuleRoomEvent),
PolicyRuleServer(InitialPolicyRuleServerEvent),
PolicyRuleUser(InitialPolicyRuleUserEvent),
RoomAliases(InitialRoomAliasesEvent),
RoomAvatar(InitialRoomAvatarEvent),
RoomCanonicalAlias(InitialRoomCanonicalAliasEvent),
RoomCreate(InitialRoomCreateEvent),
RoomEncryption(InitialRoomEncryptionEvent),
RoomEncrypted(InitialStateRoomEncryptedEvent),
RoomGuestAccess(InitialRoomGuestAccessEvent),
RoomHistoryVisibility(InitialRoomHistoryVisibilityEvent),
RoomJoinRules(InitialRoomJoinRulesEvent),
RoomLanguage(InitialRoomLanguageEvent),
RoomMember(InitialRoomMemberEvent),
RoomName(InitialRoomNameEvent),
RoomPinnedEvents(InitialRoomPinnedEventsEvent),
RoomPowerLevels(InitialRoomPowerLevelsEvent),
RoomServerAcl(InitialRoomServerAclEvent),
RoomThirdPartyInvite(InitialRoomThirdPartyInviteEvent),
RoomTombstone(InitialRoomTombstoneEvent),
RoomTopic(InitialRoomTopicEvent),
SpaceChild(InitialSpaceChildEvent),
SpaceParent(InitialSpaceParentEvent),
RoomImagePack(InitialRoomImagePackEvent),
BeaconInfo(InitialBeaconInfoEvent),
CallMember(InitialCallMemberEvent),
MemberHints(InitialMemberHintsEvent),
}Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(InitialPolicyRuleRoomEvent)
m.policy.rule.room
PolicyRuleServer(InitialPolicyRuleServerEvent)
m.policy.rule.server
PolicyRuleUser(InitialPolicyRuleUserEvent)
m.policy.rule.user
RoomAliases(InitialRoomAliasesEvent)
m.room.aliases
RoomAvatar(InitialRoomAvatarEvent)
m.room.avatar
RoomCanonicalAlias(InitialRoomCanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(InitialRoomCreateEvent)
m.room.create
RoomEncryption(InitialRoomEncryptionEvent)
m.room.encryption
RoomEncrypted(InitialStateRoomEncryptedEvent)
m.room.encrypted
RoomGuestAccess(InitialRoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(InitialRoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(InitialRoomJoinRulesEvent)
m.room.join_rules
RoomLanguage(InitialRoomLanguageEvent)
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(InitialRoomMemberEvent)
m.room.member
RoomName(InitialRoomNameEvent)
m.room.name
RoomPinnedEvents(InitialRoomPinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(InitialRoomPowerLevelsEvent)
m.room.power_levels
RoomServerAcl(InitialRoomServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(InitialRoomThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(InitialRoomTombstoneEvent)
m.room.tombstone
RoomTopic(InitialRoomTopicEvent)
m.room.topic
SpaceChild(InitialSpaceChildEvent)
m.space.child
SpaceParent(InitialSpaceParentEvent)
m.space.parent
RoomImagePack(InitialRoomImagePackEvent)
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(InitialBeaconInfoEvent)
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(InitialCallMemberEvent)
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(InitialMemberHintsEvent)
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 AnyInitialStateEvent
impl AnyInitialStateEvent
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type of this event.
Sourcepub fn content(&self) -> AnyStateEventContent
pub fn content(&self) -> AnyStateEventContent
Returns the content for this event.
Trait Implementations§
Source§impl Clone for AnyInitialStateEvent
impl Clone for AnyInitialStateEvent
Source§fn clone(&self) -> AnyInitialStateEvent
fn clone(&self) -> AnyInitialStateEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyInitialStateEvent
impl Debug for AnyInitialStateEvent
Source§impl<'de> Deserialize<'de> for AnyInitialStateEvent
impl<'de> Deserialize<'de> for AnyInitialStateEvent
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>,
Source§impl From<InitialStateEvent<BeaconInfoEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc3489 only.
impl From<InitialStateEvent<BeaconInfoEventContent>> for AnyInitialStateEvent
unstable-msc3489 only.Source§fn from(c: InitialBeaconInfoEvent) -> Self
fn from(c: InitialBeaconInfoEvent) -> Self
Source§impl From<InitialStateEvent<CallMemberEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc3401 only.
impl From<InitialStateEvent<CallMemberEventContent>> for AnyInitialStateEvent
unstable-msc3401 only.Source§fn from(c: InitialCallMemberEvent) -> Self
fn from(c: InitialCallMemberEvent) -> Self
Source§impl From<InitialStateEvent<MemberHintsEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc4171 only.
impl From<InitialStateEvent<MemberHintsEventContent>> for AnyInitialStateEvent
unstable-msc4171 only.Source§fn from(c: InitialMemberHintsEvent) -> Self
fn from(c: InitialMemberHintsEvent) -> Self
Source§impl From<InitialStateEvent<PolicyRuleRoomEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<PolicyRuleRoomEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialPolicyRuleRoomEvent) -> Self
fn from(c: InitialPolicyRuleRoomEvent) -> Self
Source§impl From<InitialStateEvent<PolicyRuleServerEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<PolicyRuleServerEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialPolicyRuleServerEvent) -> Self
fn from(c: InitialPolicyRuleServerEvent) -> Self
Source§impl From<InitialStateEvent<PolicyRuleUserEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<PolicyRuleUserEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialPolicyRuleUserEvent) -> Self
fn from(c: InitialPolicyRuleUserEvent) -> Self
Source§impl From<InitialStateEvent<RoomAliasesEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomAliasesEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomAliasesEvent) -> Self
fn from(c: InitialRoomAliasesEvent) -> Self
Source§impl From<InitialStateEvent<RoomAvatarEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomAvatarEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomAvatarEvent) -> Self
fn from(c: InitialRoomAvatarEvent) -> Self
Source§impl From<InitialStateEvent<RoomCanonicalAliasEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomCanonicalAliasEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomCanonicalAliasEvent) -> Self
fn from(c: InitialRoomCanonicalAliasEvent) -> Self
Source§impl From<InitialStateEvent<RoomCreateEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomCreateEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomCreateEvent) -> Self
fn from(c: InitialRoomCreateEvent) -> Self
Source§impl From<InitialStateEvent<RoomEncryptionEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomEncryptionEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomEncryptionEvent) -> Self
fn from(c: InitialRoomEncryptionEvent) -> Self
Source§impl From<InitialStateEvent<RoomGuestAccessEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomGuestAccessEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomGuestAccessEvent) -> Self
fn from(c: InitialRoomGuestAccessEvent) -> Self
Source§impl From<InitialStateEvent<RoomHistoryVisibilityEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomHistoryVisibilityEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomHistoryVisibilityEvent) -> Self
fn from(c: InitialRoomHistoryVisibilityEvent) -> Self
Source§impl From<InitialStateEvent<RoomImagePackEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc2545 only.
impl From<InitialStateEvent<RoomImagePackEventContent>> for AnyInitialStateEvent
unstable-msc2545 only.Source§fn from(c: InitialRoomImagePackEvent) -> Self
fn from(c: InitialRoomImagePackEvent) -> Self
Source§impl From<InitialStateEvent<RoomJoinRulesEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomJoinRulesEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomJoinRulesEvent) -> Self
fn from(c: InitialRoomJoinRulesEvent) -> Self
Source§impl From<InitialStateEvent<RoomLanguageEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc4334 only.
impl From<InitialStateEvent<RoomLanguageEventContent>> for AnyInitialStateEvent
unstable-msc4334 only.Source§fn from(c: InitialRoomLanguageEvent) -> Self
fn from(c: InitialRoomLanguageEvent) -> Self
Source§impl From<InitialStateEvent<RoomMemberEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomMemberEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomMemberEvent) -> Self
fn from(c: InitialRoomMemberEvent) -> Self
Source§impl From<InitialStateEvent<RoomNameEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomNameEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomNameEvent) -> Self
fn from(c: InitialRoomNameEvent) -> Self
Source§impl From<InitialStateEvent<RoomPinnedEventsEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomPinnedEventsEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomPinnedEventsEvent) -> Self
fn from(c: InitialRoomPinnedEventsEvent) -> Self
Source§impl From<InitialStateEvent<RoomPowerLevelsEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomPowerLevelsEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomPowerLevelsEvent) -> Self
fn from(c: InitialRoomPowerLevelsEvent) -> Self
Source§impl From<InitialStateEvent<RoomServerAclEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomServerAclEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomServerAclEvent) -> Self
fn from(c: InitialRoomServerAclEvent) -> Self
Source§impl From<InitialStateEvent<RoomThirdPartyInviteEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomThirdPartyInviteEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomThirdPartyInviteEvent) -> Self
fn from(c: InitialRoomThirdPartyInviteEvent) -> Self
Source§impl From<InitialStateEvent<RoomTombstoneEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomTombstoneEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomTombstoneEvent) -> Self
fn from(c: InitialRoomTombstoneEvent) -> Self
Source§impl From<InitialStateEvent<RoomTopicEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<RoomTopicEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialRoomTopicEvent) -> Self
fn from(c: InitialRoomTopicEvent) -> Self
Source§impl From<InitialStateEvent<SpaceChildEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<SpaceChildEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialSpaceChildEvent) -> Self
fn from(c: InitialSpaceChildEvent) -> Self
Source§impl From<InitialStateEvent<SpaceParentEventContent>> for AnyInitialStateEvent
impl From<InitialStateEvent<SpaceParentEventContent>> for AnyInitialStateEvent
Source§fn from(c: InitialSpaceParentEvent) -> Self
fn from(c: InitialSpaceParentEvent) -> Self
Source§impl From<InitialStateEvent<StateRoomEncryptedEventContent>> for AnyInitialStateEvent
Available on crate feature unstable-msc3414 only.
impl From<InitialStateEvent<StateRoomEncryptedEventContent>> for AnyInitialStateEvent
unstable-msc3414 only.