Enum ruma_events::AnySyncStateEvent [−][src]
pub enum AnySyncStateEvent {}Show variants
PolicyRuleRoom(SyncStateEvent<RoomEventContent>), PolicyRuleServer(SyncStateEvent<ServerEventContent>), PolicyRuleUser(SyncStateEvent<UserEventContent>), RoomAliases(SyncStateEvent<AliasesEventContent>), RoomAvatar(SyncStateEvent<AvatarEventContent>), RoomCanonicalAlias(SyncStateEvent<CanonicalAliasEventContent>), RoomCreate(SyncStateEvent<CreateEventContent>), RoomEncryption(SyncStateEvent<EncryptionEventContent>), RoomGuestAccess(SyncStateEvent<GuestAccessEventContent>), RoomHistoryVisibility(SyncStateEvent<HistoryVisibilityEventContent>), RoomJoinRules(SyncStateEvent<JoinRulesEventContent>), RoomMember(SyncStateEvent<MemberEventContent>), RoomName(SyncStateEvent<NameEventContent>), RoomPinnedEvents(SyncStateEvent<PinnedEventsEventContent>), RoomPowerLevels(SyncStateEvent<PowerLevelsEventContent>), RoomServerAcl(SyncStateEvent<ServerAclEventContent>), RoomThirdPartyInvite(SyncStateEvent<ThirdPartyInviteEventContent>), RoomTombstone(SyncStateEvent<TombstoneEventContent>), RoomTopic(SyncStateEvent<TopicEventContent>), Custom(SyncStateEvent<CustomEventContent>),
Expand description
Any state event.
Variants
PolicyRuleRoom(SyncStateEvent<RoomEventContent>)
m.policy.rule.room
PolicyRuleServer(SyncStateEvent<ServerEventContent>)
m.policy.rule.server
PolicyRuleUser(SyncStateEvent<UserEventContent>)
m.policy.rule.user
RoomAliases(SyncStateEvent<AliasesEventContent>)
m.room.aliases
RoomAvatar(SyncStateEvent<AvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(SyncStateEvent<CanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(SyncStateEvent<CreateEventContent>)
m.room.create
RoomEncryption(SyncStateEvent<EncryptionEventContent>)
m.room.encryption
RoomGuestAccess(SyncStateEvent<GuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(SyncStateEvent<HistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(SyncStateEvent<JoinRulesEventContent>)
m.room.join_rules
RoomMember(SyncStateEvent<MemberEventContent>)
m.room.member
RoomName(SyncStateEvent<NameEventContent>)
m.room.name
RoomPinnedEvents(SyncStateEvent<PinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(SyncStateEvent<PowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(SyncStateEvent<ServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(SyncStateEvent<ThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(SyncStateEvent<TombstoneEventContent>)
m.room.tombstone
RoomTopic(SyncStateEvent<TopicEventContent>)
m.room.topic
Custom(SyncStateEvent<CustomEventContent>)
An event not defined by the Matrix specification
Implementations
impl AnySyncStateEvent
[src]
impl AnySyncStateEvent
[src]pub fn into_full_event(self, room_id: RoomId) -> AnyStateEvent
[src]
pub fn into_full_event(self, room_id: RoomId) -> AnyStateEvent
[src]Convert this sync event into a full event, one with a room_id field.
impl AnySyncStateEvent
[src]
impl AnySyncStateEvent
[src]pub fn content(&self) -> AnyStateEventContent
[src]
pub fn content(&self) -> AnyStateEventContent
[src]Returns the any content enum for this event.
pub fn event_type(&self) -> &str
[src]
pub fn event_type(&self) -> &str
[src]Returns the type
of this event.
pub fn prev_content(&self) -> Option<AnyStateEventContent>
[src]
pub fn prev_content(&self) -> Option<AnyStateEventContent>
[src]Returns the any content enum for this events prev_content.
pub fn origin_server_ts(&self) -> &MilliSecondsSinceUnixEpoch
[src]
pub fn origin_server_ts(&self) -> &MilliSecondsSinceUnixEpoch
[src]Returns this event’s origin_server_ts field.
Trait Implementations
impl Clone for AnySyncStateEvent
[src]
impl Clone for AnySyncStateEvent
[src]fn clone(&self) -> AnySyncStateEvent
[src]
fn clone(&self) -> AnySyncStateEvent
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AnySyncStateEvent
[src]
impl Debug for AnySyncStateEvent
[src]impl<'de> Deserialize<'de> for AnySyncStateEvent
[src]
impl<'de> Deserialize<'de> for AnySyncStateEvent
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<AnyStateEvent> for AnySyncStateEvent
[src]
impl From<AnyStateEvent> for AnySyncStateEvent
[src]fn from(event: AnyStateEvent) -> Self
[src]
fn from(event: AnyStateEvent) -> Self
[src]Performs the conversion.
impl Redact for AnySyncStateEvent
[src]
impl Redact for AnySyncStateEvent
[src]type Redacted = AnyRedactedSyncStateEvent
type Redacted = AnyRedactedSyncStateEvent
The redacted form of the event.
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncStateEvent
[src]
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedSyncStateEvent
[src]Transforms self
into a redacted form (removing most fields) according to the spec. Read more
impl Serialize for AnySyncStateEvent
[src]
impl Serialize for AnySyncStateEvent
[src]Auto Trait Implementations
impl RefUnwindSafe for AnySyncStateEvent
impl Send for AnySyncStateEvent
impl Sync for AnySyncStateEvent
impl Unpin for AnySyncStateEvent
impl UnwindSafe for AnySyncStateEvent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,