#[non_exhaustive]pub enum AnyRedactionEvent {
RoomRedaction(UnsignedRoomRedactionEvent),
RoomMember(SyncRoomMemberEvent),
}Expand description
Any event that can redact another event, i.e. an event that can be found in
unsigned.redacted_because.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RoomRedaction(UnsignedRoomRedactionEvent)
m.room.redaction
RoomMember(SyncRoomMemberEvent)
m.room.member
Implementations§
Source§impl AnyRedactionEvent
impl AnyRedactionEvent
Sourcepub fn event_type(&self) -> TimelineEventType
pub fn event_type(&self) -> TimelineEventType
Returns the type of this event.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns the origin_server_ts of this event.
Trait Implementations§
Source§impl Clone for AnyRedactionEvent
impl Clone for AnyRedactionEvent
Source§fn clone(&self) -> AnyRedactionEvent
fn clone(&self) -> AnyRedactionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnyRedactionEvent
impl Debug for AnyRedactionEvent
Source§impl<'de> Deserialize<'de> for AnyRedactionEvent
impl<'de> Deserialize<'de> for AnyRedactionEvent
Source§fn 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
Auto Trait Implementations§
impl Freeze for AnyRedactionEvent
impl RefUnwindSafe for AnyRedactionEvent
impl Send for AnyRedactionEvent
impl Sync for AnyRedactionEvent
impl Unpin for AnyRedactionEvent
impl UnsafeUnpin for AnyRedactionEvent
impl UnwindSafe for AnyRedactionEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more