#[non_exhaustive]pub enum AnyStateEvent {
Show 24 variants
PolicyRuleRoom(StateEvent<PolicyRuleRoomEventContent>),
PolicyRuleServer(StateEvent<PolicyRuleServerEventContent>),
PolicyRuleUser(StateEvent<PolicyRuleUserEventContent>),
RoomAliases(StateEvent<RoomAliasesEventContent>),
RoomAvatar(StateEvent<RoomAvatarEventContent>),
RoomCanonicalAlias(StateEvent<RoomCanonicalAliasEventContent>),
RoomCreate(StateEvent<RoomCreateEventContent>),
RoomEncryption(StateEvent<RoomEncryptionEventContent>),
RoomGuestAccess(StateEvent<RoomGuestAccessEventContent>),
RoomHistoryVisibility(StateEvent<RoomHistoryVisibilityEventContent>),
RoomJoinRules(StateEvent<RoomJoinRulesEventContent>),
RoomMember(StateEvent<RoomMemberEventContent>),
RoomName(StateEvent<RoomNameEventContent>),
RoomPinnedEvents(StateEvent<RoomPinnedEventsEventContent>),
RoomPowerLevels(StateEvent<RoomPowerLevelsEventContent>),
RoomServerAcl(StateEvent<RoomServerAclEventContent>),
RoomThirdPartyInvite(StateEvent<RoomThirdPartyInviteEventContent>),
RoomTombstone(StateEvent<RoomTombstoneEventContent>),
RoomTopic(StateEvent<RoomTopicEventContent>),
SpaceChild(StateEvent<SpaceChildEventContent>),
SpaceParent(StateEvent<SpaceParentEventContent>),
BeaconInfo(StateEvent<BeaconInfoEventContent>),
CallMember(StateEvent<CallMemberEventContent>),
MemberHints(StateEvent<MemberHintsEventContent>),
}
events
only.Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(StateEvent<PolicyRuleRoomEventContent>)
m.policy.rule.room
PolicyRuleServer(StateEvent<PolicyRuleServerEventContent>)
m.policy.rule.server
PolicyRuleUser(StateEvent<PolicyRuleUserEventContent>)
m.policy.rule.user
RoomAliases(StateEvent<RoomAliasesEventContent>)
m.room.aliases
RoomAvatar(StateEvent<RoomAvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(StateEvent<RoomCanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(StateEvent<RoomCreateEventContent>)
m.room.create
RoomEncryption(StateEvent<RoomEncryptionEventContent>)
m.room.encryption
RoomGuestAccess(StateEvent<RoomGuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(StateEvent<RoomHistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(StateEvent<RoomJoinRulesEventContent>)
m.room.join_rules
RoomMember(StateEvent<RoomMemberEventContent>)
m.room.member
RoomName(StateEvent<RoomNameEventContent>)
m.room.name
RoomPinnedEvents(StateEvent<RoomPinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(StateEvent<RoomPowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(StateEvent<RoomServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(StateEvent<RoomThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(StateEvent<RoomTombstoneEventContent>)
m.room.tombstone
RoomTopic(StateEvent<RoomTopicEventContent>)
m.room.topic
SpaceChild(StateEvent<SpaceChildEventContent>)
m.space.child
SpaceParent(StateEvent<SpaceParentEventContent>)
m.space.parent
BeaconInfo(StateEvent<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(StateEvent<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(StateEvent<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 AnyStateEvent
impl AnyStateEvent
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type
of this event.
Sourcepub fn original_content(&self) -> Option<AnyStateEventContent>
pub fn original_content(&self) -> Option<AnyStateEventContent>
Returns the content for this event if it is not redacted, or None
if it is.
Sourcepub fn content(&self) -> AnyFullStateEventContent
pub fn content(&self) -> AnyFullStateEventContent
Returns the content of this state event.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
Sourcepub fn transaction_id(&self) -> Option<&TransactionId>
pub fn transaction_id(&self) -> Option<&TransactionId>
Returns this event’s transaction_id
from inside unsigned
, if there is one.
Trait Implementations§
Source§impl Clone for AnyStateEvent
impl Clone for AnyStateEvent
Source§fn clone(&self) -> AnyStateEvent
fn clone(&self) -> AnyStateEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AnyStateEvent
impl Debug for AnyStateEvent
Source§impl<'de> Deserialize<'de> for AnyStateEvent
impl<'de> Deserialize<'de> for AnyStateEvent
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AnyStateEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AnyStateEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<AnyStateEvent> for AnySyncStateEvent
impl From<AnyStateEvent> for AnySyncStateEvent
Source§fn from(event: AnyStateEvent) -> AnySyncStateEvent
fn from(event: AnyStateEvent) -> AnySyncStateEvent
Source§impl From<AnyStateEvent> for AnyTimelineEvent
impl From<AnyStateEvent> for AnyTimelineEvent
Source§fn from(c: AnyStateEvent) -> AnyTimelineEvent
fn from(c: AnyStateEvent) -> AnyTimelineEvent
Source§impl From<StateEvent<BeaconInfoEventContent>> for AnyStateEvent
Available on crate feature unstable-msc3489
only.
impl From<StateEvent<BeaconInfoEventContent>> for AnyStateEvent
unstable-msc3489
only.Source§fn from(c: StateEvent<BeaconInfoEventContent>) -> AnyStateEvent
fn from(c: StateEvent<BeaconInfoEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
Available on crate feature unstable-msc3401
only.
impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
unstable-msc3401
only.Source§fn from(c: StateEvent<CallMemberEventContent>) -> AnyStateEvent
fn from(c: StateEvent<CallMemberEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<MemberHintsEventContent>> for AnyStateEvent
Available on crate feature unstable-msc4171
only.
impl From<StateEvent<MemberHintsEventContent>> for AnyStateEvent
unstable-msc4171
only.