Enum ruma_events::AnyStateEvent
source · pub enum AnyStateEvent {
Show 22 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),
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
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 more