Enum ruma::events::AnyStrippedStateEvent [−][src]
pub enum AnyStrippedStateEvent {
Show 21 variants
PolicyRuleRoom(StrippedStateEvent<RoomEventContent>),
PolicyRuleServer(StrippedStateEvent<ServerEventContent>),
PolicyRuleUser(StrippedStateEvent<UserEventContent>),
RoomAliases(StrippedStateEvent<AliasesEventContent>),
RoomAvatar(StrippedStateEvent<AvatarEventContent>),
RoomCanonicalAlias(StrippedStateEvent<CanonicalAliasEventContent>),
RoomCreate(StrippedStateEvent<CreateEventContent>),
RoomEncryption(StrippedStateEvent<EncryptionEventContent>),
RoomGuestAccess(StrippedStateEvent<GuestAccessEventContent>),
RoomHistoryVisibility(StrippedStateEvent<HistoryVisibilityEventContent>),
RoomJoinRules(StrippedStateEvent<JoinRulesEventContent>),
RoomMember(StrippedStateEvent<MemberEventContent>),
RoomName(StrippedStateEvent<NameEventContent>),
RoomPinnedEvents(StrippedStateEvent<PinnedEventsEventContent>),
RoomPowerLevels(StrippedStateEvent<PowerLevelsEventContent>),
RoomServerAcl(StrippedStateEvent<ServerAclEventContent>),
RoomThirdPartyInvite(StrippedStateEvent<ThirdPartyInviteEventContent>),
RoomTombstone(StrippedStateEvent<TombstoneEventContent>),
RoomTopic(StrippedStateEvent<TopicEventContent>),
SpaceChild(StrippedStateEvent<ChildEventContent>),
SpaceParent(StrippedStateEvent<ParentEventContent>),
// some variants omitted
}
events
only.Expand description
Any state event.
Variants
PolicyRuleRoom(StrippedStateEvent<RoomEventContent>)
m.policy.rule.room
PolicyRuleServer(StrippedStateEvent<ServerEventContent>)
m.policy.rule.server
PolicyRuleUser(StrippedStateEvent<UserEventContent>)
m.policy.rule.user
RoomAliases(StrippedStateEvent<AliasesEventContent>)
m.room.aliases
RoomAvatar(StrippedStateEvent<AvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(StrippedStateEvent<CanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(StrippedStateEvent<CreateEventContent>)
m.room.create
RoomEncryption(StrippedStateEvent<EncryptionEventContent>)
m.room.encryption
RoomGuestAccess(StrippedStateEvent<GuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(StrippedStateEvent<HistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(StrippedStateEvent<JoinRulesEventContent>)
m.room.join_rules
RoomMember(StrippedStateEvent<MemberEventContent>)
m.room.member
RoomName(StrippedStateEvent<NameEventContent>)
m.room.name
RoomPinnedEvents(StrippedStateEvent<PinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(StrippedStateEvent<PowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(StrippedStateEvent<ServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(StrippedStateEvent<ThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(StrippedStateEvent<TombstoneEventContent>)
m.room.tombstone
RoomTopic(StrippedStateEvent<TopicEventContent>)
m.room.topic
SpaceChild(StrippedStateEvent<ChildEventContent>)
m.space.child
SpaceParent(StrippedStateEvent<ParentEventContent>)
m.space.parent
Implementations
Returns the any content enum for this event.
Returns the type
of this event.
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<AnyStrippedStateEvent, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<AnyStrippedStateEvent, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
The redacted form of the event.
pub fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedStrippedStateEvent
pub fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedStrippedStateEvent
Transforms self
into a redacted form (removing most fields) according to the spec. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more