#[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>),
}
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.Source§fn from(c: StateEvent<MemberHintsEventContent>) -> AnyStateEvent
fn from(c: StateEvent<MemberHintsEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<PolicyRuleRoomEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleRoomEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<PolicyRuleRoomEventContent>) -> AnyStateEvent
fn from(c: StateEvent<PolicyRuleRoomEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<PolicyRuleServerEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleServerEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<PolicyRuleServerEventContent>) -> AnyStateEvent
fn from(c: StateEvent<PolicyRuleServerEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<PolicyRuleUserEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleUserEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<PolicyRuleUserEventContent>) -> AnyStateEvent
fn from(c: StateEvent<PolicyRuleUserEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomAliasesEventContent>> for AnyStateEvent
impl From<StateEvent<RoomAliasesEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomAliasesEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomAliasesEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomAvatarEventContent>> for AnyStateEvent
impl From<StateEvent<RoomAvatarEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomAvatarEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomAvatarEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomCanonicalAliasEventContent>> for AnyStateEvent
impl From<StateEvent<RoomCanonicalAliasEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomCanonicalAliasEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomCanonicalAliasEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomCreateEventContent>> for AnyStateEvent
impl From<StateEvent<RoomCreateEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomCreateEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomCreateEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomEncryptionEventContent>> for AnyStateEvent
impl From<StateEvent<RoomEncryptionEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomEncryptionEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomEncryptionEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomGuestAccessEventContent>> for AnyStateEvent
impl From<StateEvent<RoomGuestAccessEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomGuestAccessEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomGuestAccessEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomHistoryVisibilityEventContent>> for AnyStateEvent
impl From<StateEvent<RoomHistoryVisibilityEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomHistoryVisibilityEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomHistoryVisibilityEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomJoinRulesEventContent>> for AnyStateEvent
impl From<StateEvent<RoomJoinRulesEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomJoinRulesEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomJoinRulesEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomMemberEventContent>> for AnyStateEvent
impl From<StateEvent<RoomMemberEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomMemberEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomMemberEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomNameEventContent>> for AnyStateEvent
impl From<StateEvent<RoomNameEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomNameEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomNameEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomPinnedEventsEventContent>> for AnyStateEvent
impl From<StateEvent<RoomPinnedEventsEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomPinnedEventsEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomPinnedEventsEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomPowerLevelsEventContent>> for AnyStateEvent
impl From<StateEvent<RoomPowerLevelsEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomPowerLevelsEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomPowerLevelsEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomServerAclEventContent>> for AnyStateEvent
impl From<StateEvent<RoomServerAclEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomServerAclEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomServerAclEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomThirdPartyInviteEventContent>> for AnyStateEvent
impl From<StateEvent<RoomThirdPartyInviteEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomThirdPartyInviteEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomThirdPartyInviteEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomTombstoneEventContent>> for AnyStateEvent
impl From<StateEvent<RoomTombstoneEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomTombstoneEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomTombstoneEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<RoomTopicEventContent>> for AnyStateEvent
impl From<StateEvent<RoomTopicEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<RoomTopicEventContent>) -> AnyStateEvent
fn from(c: StateEvent<RoomTopicEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<SpaceChildEventContent>> for AnyStateEvent
impl From<StateEvent<SpaceChildEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<SpaceChildEventContent>) -> AnyStateEvent
fn from(c: StateEvent<SpaceChildEventContent>) -> AnyStateEvent
Source§impl From<StateEvent<SpaceParentEventContent>> for AnyStateEvent
impl From<StateEvent<SpaceParentEventContent>> for AnyStateEvent
Source§fn from(c: StateEvent<SpaceParentEventContent>) -> AnyStateEvent
fn from(c: StateEvent<SpaceParentEventContent>) -> AnyStateEvent
Auto Trait Implementations§
impl Freeze for AnyStateEvent
impl RefUnwindSafe for AnyStateEvent
impl Send for AnyStateEvent
impl Sync for AnyStateEvent
impl Unpin for AnyStateEvent
impl UnwindSafe for AnyStateEvent
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§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