[][src]Enum ruma_events::collections::all::StateEvent

pub enum StateEvent {
    RoomAliases(AliasesEvent),
    RoomAvatar(AvatarEvent),
    RoomCanonicalAlias(CanonicalAliasEvent),
    RoomCreate(CreateEvent),
    RoomEncryption(EncryptionEvent),
    RoomGuestAccess(GuestAccessEvent),
    RoomHistoryVisibility(HistoryVisibilityEvent),
    RoomJoinRules(JoinRulesEvent),
    RoomMember(MemberEvent),
    RoomName(NameEvent),
    RoomPinnedEvents(PinnedEventsEvent),
    RoomPowerLevels(PowerLevelsEvent),
    RoomServerAcl(ServerAclEvent),
    RoomThirdPartyInvite(ThirdPartyInviteEvent),
    RoomTombstone(TombstoneEvent),
    RoomTopic(TopicEvent),
    CustomState(CustomStateEvent),
}

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

RoomEncryption(EncryptionEvent)

m.room.encryption

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

RoomServerAcl(ServerAclEvent)

m.room.server_acl

RoomThirdPartyInvite(ThirdPartyInviteEvent)

m.room.third_party_invite

RoomTombstone(TombstoneEvent)

m.room.tombstone

RoomTopic(TopicEvent)

m.room.topic

CustomState(CustomStateEvent)

Any state event that is not part of the specification.

Trait Implementations

impl Clone for StateEvent[src]

impl Debug for StateEvent[src]

impl From<AliasesEvent> for StateEvent[src]

impl From<AvatarEvent> for StateEvent[src]

impl From<CanonicalAliasEvent> for StateEvent[src]

impl From<CreateEvent> for StateEvent[src]

impl From<CustomStateEvent> for StateEvent[src]

impl From<EncryptionEvent> for StateEvent[src]

impl From<GuestAccessEvent> for StateEvent[src]

impl From<HistoryVisibilityEvent> for StateEvent[src]

impl From<JoinRulesEvent> for StateEvent[src]

impl From<MemberEvent> for StateEvent[src]

impl From<NameEvent> for StateEvent[src]

impl From<PinnedEventsEvent> for StateEvent[src]

impl From<PowerLevelsEvent> for StateEvent[src]

impl From<ServerAclEvent> for StateEvent[src]

impl From<ThirdPartyInviteEvent> for StateEvent[src]

impl From<TombstoneEvent> for StateEvent[src]

impl From<TopicEvent> for StateEvent[src]

impl Serialize for StateEvent[src]

impl TryFromRaw for StateEvent[src]

type Raw = StateEvent

The raw type.

type Err = String

The error type returned if conversion fails.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,