Enum ruma_events::collections::all::StateEvent
source · pub enum StateEvent {
Show 14 variants
RoomAliases(AliasesEvent),
RoomAvatar(AvatarEvent),
RoomCanonicalAlias(CanonicalAliasEvent),
RoomCreate(CreateEvent),
RoomGuestAccess(GuestAccessEvent),
RoomHistoryVisibility(HistoryVisibilityEvent),
RoomJoinRules(JoinRulesEvent),
RoomMember(MemberEvent),
RoomName(NameEvent),
RoomPinnedEvents(PinnedEventsEvent),
RoomPowerLevels(PowerLevelsEvent),
RoomThirdPartyInvite(ThirdPartyInviteEvent),
RoomTopic(TopicEvent),
CustomState(CustomStateEvent),
}
Expand description
A state event.
Variants
RoomAliases(AliasesEvent)
m.room.aliases
RoomAvatar(AvatarEvent)
m.room.avatar
RoomCanonicalAlias(CanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(CreateEvent)
m.room.create
RoomGuestAccess(GuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(HistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(JoinRulesEvent)
m.room.join_rules
RoomMember(MemberEvent)
m.room.member
RoomName(NameEvent)
m.room.name
RoomPinnedEvents(PinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(PowerLevelsEvent)
m.room.power_levels
RoomThirdPartyInvite(ThirdPartyInviteEvent)
m.room.third_party_invite
RoomTopic(TopicEvent)
m.room.topic
CustomState(CustomStateEvent)
Any state event that is not part of the specification.
Trait Implementations
sourceimpl Clone for StateEvent
impl Clone for StateEvent
sourcefn clone(&self) -> StateEvent
fn clone(&self) -> StateEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StateEvent
impl Debug for StateEvent
sourceimpl<'de> Deserialize<'de> for StateEvent
impl<'de> Deserialize<'de> for StateEvent
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<AliasesEvent> for StateEvent
impl From<AliasesEvent> for StateEvent
sourcefn from(event: AliasesEvent) -> Self
fn from(event: AliasesEvent) -> Self
Converts to this type from the input type.
sourceimpl From<AvatarEvent> for StateEvent
impl From<AvatarEvent> for StateEvent
sourcefn from(event: AvatarEvent) -> Self
fn from(event: AvatarEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CanonicalAliasEvent> for StateEvent
impl From<CanonicalAliasEvent> for StateEvent
sourcefn from(event: CanonicalAliasEvent) -> Self
fn from(event: CanonicalAliasEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CreateEvent> for StateEvent
impl From<CreateEvent> for StateEvent
sourcefn from(event: CreateEvent) -> Self
fn from(event: CreateEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CustomStateEvent> for StateEvent
impl From<CustomStateEvent> for StateEvent
sourcefn from(event: CustomStateEvent) -> Self
fn from(event: CustomStateEvent) -> Self
Converts to this type from the input type.
sourceimpl From<GuestAccessEvent> for StateEvent
impl From<GuestAccessEvent> for StateEvent
sourcefn from(event: GuestAccessEvent) -> Self
fn from(event: GuestAccessEvent) -> Self
Converts to this type from the input type.
sourceimpl From<HistoryVisibilityEvent> for StateEvent
impl From<HistoryVisibilityEvent> for StateEvent
sourcefn from(event: HistoryVisibilityEvent) -> Self
fn from(event: HistoryVisibilityEvent) -> Self
Converts to this type from the input type.
sourceimpl From<JoinRulesEvent> for StateEvent
impl From<JoinRulesEvent> for StateEvent
sourcefn from(event: JoinRulesEvent) -> Self
fn from(event: JoinRulesEvent) -> Self
Converts to this type from the input type.
sourceimpl From<MemberEvent> for StateEvent
impl From<MemberEvent> for StateEvent
sourcefn from(event: MemberEvent) -> Self
fn from(event: MemberEvent) -> Self
Converts to this type from the input type.
sourceimpl From<NameEvent> for StateEvent
impl From<NameEvent> for StateEvent
sourceimpl From<PinnedEventsEvent> for StateEvent
impl From<PinnedEventsEvent> for StateEvent
sourcefn from(event: PinnedEventsEvent) -> Self
fn from(event: PinnedEventsEvent) -> Self
Converts to this type from the input type.
sourceimpl From<PowerLevelsEvent> for StateEvent
impl From<PowerLevelsEvent> for StateEvent
sourcefn from(event: PowerLevelsEvent) -> Self
fn from(event: PowerLevelsEvent) -> Self
Converts to this type from the input type.
sourceimpl From<ThirdPartyInviteEvent> for StateEvent
impl From<ThirdPartyInviteEvent> for StateEvent
sourcefn from(event: ThirdPartyInviteEvent) -> Self
fn from(event: ThirdPartyInviteEvent) -> Self
Converts to this type from the input type.
sourceimpl From<TopicEvent> for StateEvent
impl From<TopicEvent> for StateEvent
sourcefn from(event: TopicEvent) -> Self
fn from(event: TopicEvent) -> Self
Converts to this type from the input type.
sourceimpl Serialize for StateEvent
impl Serialize for StateEvent
Auto Trait Implementations
impl RefUnwindSafe for StateEvent
impl Send for StateEvent
impl Sync for StateEvent
impl Unpin for StateEvent
impl UnwindSafe for StateEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more