Enum ruma_common::events::AnyStrippedStateEvent
source · [−]#[non_exhaustive]
pub enum AnyStrippedStateEvent {
Show 21 variants
PolicyRuleRoom(StrippedPolicyRuleRoomEvent),
PolicyRuleServer(StrippedPolicyRuleServerEvent),
PolicyRuleUser(StrippedPolicyRuleUserEvent),
RoomAliases(StrippedRoomAliasesEvent),
RoomAvatar(StrippedRoomAvatarEvent),
RoomCanonicalAlias(StrippedRoomCanonicalAliasEvent),
RoomCreate(StrippedRoomCreateEvent),
RoomEncryption(StrippedRoomEncryptionEvent),
RoomGuestAccess(StrippedRoomGuestAccessEvent),
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent),
RoomJoinRules(StrippedRoomJoinRulesEvent),
RoomMember(StrippedRoomMemberEvent),
RoomName(StrippedRoomNameEvent),
RoomPinnedEvents(StrippedRoomPinnedEventsEvent),
RoomPowerLevels(StrippedRoomPowerLevelsEvent),
RoomServerAcl(StrippedRoomServerAclEvent),
RoomThirdPartyInvite(StrippedRoomThirdPartyInviteEvent),
RoomTombstone(StrippedRoomTombstoneEvent),
RoomTopic(StrippedRoomTopicEvent),
SpaceChild(StrippedSpaceChildEvent),
SpaceParent(StrippedSpaceParentEvent),
// some variants omitted
}
Expand description
Any state event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
PolicyRuleRoom(StrippedPolicyRuleRoomEvent)
m.policy.rule.room
PolicyRuleServer(StrippedPolicyRuleServerEvent)
m.policy.rule.server
PolicyRuleUser(StrippedPolicyRuleUserEvent)
m.policy.rule.user
RoomAliases(StrippedRoomAliasesEvent)
m.room.aliases
RoomAvatar(StrippedRoomAvatarEvent)
m.room.avatar
RoomCanonicalAlias(StrippedRoomCanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(StrippedRoomCreateEvent)
m.room.create
RoomEncryption(StrippedRoomEncryptionEvent)
m.room.encryption
RoomGuestAccess(StrippedRoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(StrippedRoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(StrippedRoomJoinRulesEvent)
m.room.join_rules
RoomMember(StrippedRoomMemberEvent)
m.room.member
RoomName(StrippedRoomNameEvent)
m.room.name
RoomPinnedEvents(StrippedRoomPinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(StrippedRoomPowerLevelsEvent)
m.room.power_levels
RoomServerAcl(StrippedRoomServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(StrippedRoomThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(StrippedRoomTombstoneEvent)
m.room.tombstone
RoomTopic(StrippedRoomTopicEvent)
m.room.topic
SpaceChild(StrippedSpaceChildEvent)
m.space.child
SpaceParent(StrippedSpaceParentEvent)
m.space.parent
Implementations
sourceimpl AnyStrippedStateEvent
impl AnyStrippedStateEvent
sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type
of this event.
sourcepub fn content(&self) -> AnyStateEventContent
pub fn content(&self) -> AnyStateEventContent
Returns the content for this event.
Trait Implementations
sourceimpl Clone for AnyStrippedStateEvent
impl Clone for AnyStrippedStateEvent
sourcefn clone(&self) -> AnyStrippedStateEvent
fn clone(&self) -> AnyStrippedStateEvent
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 more
sourceimpl Debug for AnyStrippedStateEvent
impl Debug for AnyStrippedStateEvent
sourceimpl<'de> Deserialize<'de> for AnyStrippedStateEvent
impl<'de> Deserialize<'de> for AnyStrippedStateEvent
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<StrippedStateEvent<PolicyRuleRoomEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PolicyRuleRoomEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedPolicyRuleRoomEvent) -> Self
fn from(c: StrippedPolicyRuleRoomEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<PolicyRuleServerEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PolicyRuleServerEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedPolicyRuleServerEvent) -> Self
fn from(c: StrippedPolicyRuleServerEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<PolicyRuleUserEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<PolicyRuleUserEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedPolicyRuleUserEvent) -> Self
fn from(c: StrippedPolicyRuleUserEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomAliasesEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomAliasesEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomAliasesEvent) -> Self
fn from(c: StrippedRoomAliasesEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomAvatarEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomAvatarEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomAvatarEvent) -> Self
fn from(c: StrippedRoomAvatarEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomCanonicalAliasEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomCanonicalAliasEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomCanonicalAliasEvent) -> Self
fn from(c: StrippedRoomCanonicalAliasEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomCreateEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomCreateEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomCreateEvent) -> Self
fn from(c: StrippedRoomCreateEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomEncryptionEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomEncryptionEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomEncryptionEvent) -> Self
fn from(c: StrippedRoomEncryptionEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomGuestAccessEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomGuestAccessEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomGuestAccessEvent) -> Self
fn from(c: StrippedRoomGuestAccessEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomHistoryVisibilityEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomHistoryVisibilityEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomHistoryVisibilityEvent) -> Self
fn from(c: StrippedRoomHistoryVisibilityEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomJoinRulesEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomJoinRulesEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomJoinRulesEvent) -> Self
fn from(c: StrippedRoomJoinRulesEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomMemberEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomMemberEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomMemberEvent) -> Self
fn from(c: StrippedRoomMemberEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomNameEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomNameEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomNameEvent) -> Self
fn from(c: StrippedRoomNameEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomPinnedEventsEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomPinnedEventsEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomPinnedEventsEvent) -> Self
fn from(c: StrippedRoomPinnedEventsEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomPowerLevelsEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomPowerLevelsEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomPowerLevelsEvent) -> Self
fn from(c: StrippedRoomPowerLevelsEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomServerAclEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomServerAclEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomServerAclEvent) -> Self
fn from(c: StrippedRoomServerAclEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomThirdPartyInviteEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomThirdPartyInviteEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomThirdPartyInviteEvent) -> Self
fn from(c: StrippedRoomThirdPartyInviteEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomTombstoneEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomTombstoneEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomTombstoneEvent) -> Self
fn from(c: StrippedRoomTombstoneEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<RoomTopicEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<RoomTopicEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedRoomTopicEvent) -> Self
fn from(c: StrippedRoomTopicEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<SpaceChildEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<SpaceChildEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedSpaceChildEvent) -> Self
fn from(c: StrippedSpaceChildEvent) -> Self
Converts to this type from the input type.
sourceimpl From<StrippedStateEvent<SpaceParentEventContent>> for AnyStrippedStateEvent
impl From<StrippedStateEvent<SpaceParentEventContent>> for AnyStrippedStateEvent
sourcefn from(c: StrippedSpaceParentEvent) -> Self
fn from(c: StrippedSpaceParentEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AnyStrippedStateEvent
impl Send for AnyStrippedStateEvent
impl Sync for AnyStrippedStateEvent
impl Unpin for AnyStrippedStateEvent
impl UnwindSafe for AnyStrippedStateEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more