Enum matrix_sdk::ruma::events::AnyStateEvent
source · #[non_exhaustive]pub enum AnyStateEvent {
Show 23 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>),
}
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>)
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>)
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 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
impl From<StateEvent<BeaconInfoEventContent>> for AnyStateEvent
source§fn from(c: StateEvent<BeaconInfoEventContent>) -> AnyStateEvent
fn from(c: StateEvent<BeaconInfoEventContent>) -> AnyStateEvent
source§impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
source§fn from(c: StateEvent<CallMemberEventContent>) -> AnyStateEvent
fn from(c: StateEvent<CallMemberEventContent>) -> 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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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