Enum ruma_events::AnyStateEvent
source · pub enum AnyStateEvent {
Show 23 variants
PolicyRuleRoom(PolicyRuleRoomEvent),
PolicyRuleServer(PolicyRuleServerEvent),
PolicyRuleUser(PolicyRuleUserEvent),
RoomAliases(RoomAliasesEvent),
RoomAvatar(RoomAvatarEvent),
RoomCanonicalAlias(RoomCanonicalAliasEvent),
RoomCreate(RoomCreateEvent),
RoomEncryption(RoomEncryptionEvent),
RoomGuestAccess(RoomGuestAccessEvent),
RoomHistoryVisibility(RoomHistoryVisibilityEvent),
RoomJoinRules(RoomJoinRulesEvent),
RoomMember(RoomMemberEvent),
RoomName(RoomNameEvent),
RoomPinnedEvents(RoomPinnedEventsEvent),
RoomPowerLevels(RoomPowerLevelsEvent),
RoomServerAcl(RoomServerAclEvent),
RoomThirdPartyInvite(RoomThirdPartyInviteEvent),
RoomTombstone(RoomTombstoneEvent),
RoomTopic(RoomTopicEvent),
SpaceChild(SpaceChildEvent),
SpaceParent(SpaceParentEvent),
BeaconInfo(BeaconInfoEvent),
CallMember(CallMemberEvent),
// some variants omitted
}
Expand description
Any state event.
Variants§
PolicyRuleRoom(PolicyRuleRoomEvent)
m.policy.rule.room
PolicyRuleServer(PolicyRuleServerEvent)
m.policy.rule.server
PolicyRuleUser(PolicyRuleUserEvent)
m.policy.rule.user
RoomAliases(RoomAliasesEvent)
m.room.aliases
RoomAvatar(RoomAvatarEvent)
m.room.avatar
RoomCanonicalAlias(RoomCanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(RoomCreateEvent)
m.room.create
RoomEncryption(RoomEncryptionEvent)
m.room.encryption
RoomGuestAccess(RoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(RoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(RoomJoinRulesEvent)
m.room.join_rules
RoomMember(RoomMemberEvent)
m.room.member
RoomName(RoomNameEvent)
m.room.name
RoomPinnedEvents(RoomPinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(RoomPowerLevelsEvent)
m.room.power_levels
RoomServerAcl(RoomServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(RoomThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(RoomTombstoneEvent)
m.room.tombstone
RoomTopic(RoomTopicEvent)
m.room.topic
SpaceChild(SpaceChildEvent)
m.space.child
SpaceParent(SpaceParentEvent)
m.space.parent
BeaconInfo(BeaconInfoEvent)
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(CallMemberEvent)
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl From<AnyStateEvent> for AnySyncStateEvent
impl From<AnyStateEvent> for AnySyncStateEvent
source§fn from(event: AnyStateEvent) -> Self
fn from(event: AnyStateEvent) -> Self
source§impl From<AnyStateEvent> for AnyTimelineEvent
impl From<AnyStateEvent> for AnyTimelineEvent
source§fn from(c: AnyStateEvent) -> Self
fn from(c: AnyStateEvent) -> Self
source§impl From<StateEvent<BeaconInfoEventContent>> for AnyStateEvent
impl From<StateEvent<BeaconInfoEventContent>> for AnyStateEvent
source§fn from(c: BeaconInfoEvent) -> Self
fn from(c: BeaconInfoEvent) -> Self
source§impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
impl From<StateEvent<CallMemberEventContent>> for AnyStateEvent
source§fn from(c: CallMemberEvent) -> Self
fn from(c: CallMemberEvent) -> Self
source§impl From<StateEvent<PolicyRuleRoomEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleRoomEventContent>> for AnyStateEvent
source§fn from(c: PolicyRuleRoomEvent) -> Self
fn from(c: PolicyRuleRoomEvent) -> Self
source§impl From<StateEvent<PolicyRuleServerEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleServerEventContent>> for AnyStateEvent
source§fn from(c: PolicyRuleServerEvent) -> Self
fn from(c: PolicyRuleServerEvent) -> Self
source§impl From<StateEvent<PolicyRuleUserEventContent>> for AnyStateEvent
impl From<StateEvent<PolicyRuleUserEventContent>> for AnyStateEvent
source§fn from(c: PolicyRuleUserEvent) -> Self
fn from(c: PolicyRuleUserEvent) -> Self
source§impl From<StateEvent<RoomAliasesEventContent>> for AnyStateEvent
impl From<StateEvent<RoomAliasesEventContent>> for AnyStateEvent
source§fn from(c: RoomAliasesEvent) -> Self
fn from(c: RoomAliasesEvent) -> Self
source§impl From<StateEvent<RoomAvatarEventContent>> for AnyStateEvent
impl From<StateEvent<RoomAvatarEventContent>> for AnyStateEvent
source§fn from(c: RoomAvatarEvent) -> Self
fn from(c: RoomAvatarEvent) -> Self
source§impl From<StateEvent<RoomCanonicalAliasEventContent>> for AnyStateEvent
impl From<StateEvent<RoomCanonicalAliasEventContent>> for AnyStateEvent
source§fn from(c: RoomCanonicalAliasEvent) -> Self
fn from(c: RoomCanonicalAliasEvent) -> Self
source§impl From<StateEvent<RoomCreateEventContent>> for AnyStateEvent
impl From<StateEvent<RoomCreateEventContent>> for AnyStateEvent
source§fn from(c: RoomCreateEvent) -> Self
fn from(c: RoomCreateEvent) -> Self
source§impl From<StateEvent<RoomEncryptionEventContent>> for AnyStateEvent
impl From<StateEvent<RoomEncryptionEventContent>> for AnyStateEvent
source§fn from(c: RoomEncryptionEvent) -> Self
fn from(c: RoomEncryptionEvent) -> Self
source§impl From<StateEvent<RoomGuestAccessEventContent>> for AnyStateEvent
impl From<StateEvent<RoomGuestAccessEventContent>> for AnyStateEvent
source§fn from(c: RoomGuestAccessEvent) -> Self
fn from(c: RoomGuestAccessEvent) -> Self
source§impl From<StateEvent<RoomHistoryVisibilityEventContent>> for AnyStateEvent
impl From<StateEvent<RoomHistoryVisibilityEventContent>> for AnyStateEvent
source§fn from(c: RoomHistoryVisibilityEvent) -> Self
fn from(c: RoomHistoryVisibilityEvent) -> Self
source§impl From<StateEvent<RoomJoinRulesEventContent>> for AnyStateEvent
impl From<StateEvent<RoomJoinRulesEventContent>> for AnyStateEvent
source§fn from(c: RoomJoinRulesEvent) -> Self
fn from(c: RoomJoinRulesEvent) -> Self
source§impl From<StateEvent<RoomMemberEventContent>> for AnyStateEvent
impl From<StateEvent<RoomMemberEventContent>> for AnyStateEvent
source§fn from(c: RoomMemberEvent) -> Self
fn from(c: RoomMemberEvent) -> Self
source§impl From<StateEvent<RoomNameEventContent>> for AnyStateEvent
impl From<StateEvent<RoomNameEventContent>> for AnyStateEvent
source§fn from(c: RoomNameEvent) -> Self
fn from(c: RoomNameEvent) -> Self
source§impl From<StateEvent<RoomPinnedEventsEventContent>> for AnyStateEvent
impl From<StateEvent<RoomPinnedEventsEventContent>> for AnyStateEvent
source§fn from(c: RoomPinnedEventsEvent) -> Self
fn from(c: RoomPinnedEventsEvent) -> Self
source§impl From<StateEvent<RoomPowerLevelsEventContent>> for AnyStateEvent
impl From<StateEvent<RoomPowerLevelsEventContent>> for AnyStateEvent
source§fn from(c: RoomPowerLevelsEvent) -> Self
fn from(c: RoomPowerLevelsEvent) -> Self
source§impl From<StateEvent<RoomServerAclEventContent>> for AnyStateEvent
impl From<StateEvent<RoomServerAclEventContent>> for AnyStateEvent
source§fn from(c: RoomServerAclEvent) -> Self
fn from(c: RoomServerAclEvent) -> Self
source§impl From<StateEvent<RoomThirdPartyInviteEventContent>> for AnyStateEvent
impl From<StateEvent<RoomThirdPartyInviteEventContent>> for AnyStateEvent
source§fn from(c: RoomThirdPartyInviteEvent) -> Self
fn from(c: RoomThirdPartyInviteEvent) -> Self
source§impl From<StateEvent<RoomTombstoneEventContent>> for AnyStateEvent
impl From<StateEvent<RoomTombstoneEventContent>> for AnyStateEvent
source§fn from(c: RoomTombstoneEvent) -> Self
fn from(c: RoomTombstoneEvent) -> Self
source§impl From<StateEvent<RoomTopicEventContent>> for AnyStateEvent
impl From<StateEvent<RoomTopicEventContent>> for AnyStateEvent
source§fn from(c: RoomTopicEvent) -> Self
fn from(c: RoomTopicEvent) -> Self
source§impl From<StateEvent<SpaceChildEventContent>> for AnyStateEvent
impl From<StateEvent<SpaceChildEventContent>> for AnyStateEvent
source§fn from(c: SpaceChildEvent) -> Self
fn from(c: SpaceChildEvent) -> Self
source§impl From<StateEvent<SpaceParentEventContent>> for AnyStateEvent
impl From<StateEvent<SpaceParentEventContent>> for AnyStateEvent
source§fn from(c: SpaceParentEvent) -> Self
fn from(c: SpaceParentEvent) -> Self
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)