Struct ruma_events::UnsignedRoomRedactionEvent
source · #[non_exhaustive]pub struct UnsignedRoomRedactionEvent {
pub content: RoomRedactionEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: MessageLikeUnsigned<RoomRedactionEventContent>,
}
Expand description
A redaction event as found in unsigned.redacted_because
.
While servers usually send this with the redacts
field (unless nested), the ID of the event
being redacted is known from context wherever this type is used, so it’s not reflected as a
field here.
It is intentionally not possible to create an instance of this type other than through Clone
or Deserialize
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.content: RoomRedactionEventContent
Data specific to the event type.
event_id: OwnedEventId
The globally unique event identifier for the user who sent the event.
sender: OwnedUserId
The fully-qualified ID of the user who sent this event.
origin_server_ts: MilliSecondsSinceUnixEpoch
Timestamp in milliseconds on originating homeserver when this event was sent.
unsigned: MessageLikeUnsigned<RoomRedactionEventContent>
Additional key-value pairs not signed by the homeserver.
Trait Implementations§
source§impl Clone for UnsignedRoomRedactionEvent
impl Clone for UnsignedRoomRedactionEvent
source§fn clone(&self) -> UnsignedRoomRedactionEvent
fn clone(&self) -> UnsignedRoomRedactionEvent
Returns a copy 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 UnsignedRoomRedactionEvent
impl Debug for UnsignedRoomRedactionEvent
source§impl<'de> Deserialize<'de> for UnsignedRoomRedactionEvent
impl<'de> Deserialize<'de> for UnsignedRoomRedactionEvent
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 UnsignedRoomRedactionEvent
impl RefUnwindSafe for UnsignedRoomRedactionEvent
impl Send for UnsignedRoomRedactionEvent
impl Sync for UnsignedRoomRedactionEvent
impl Unpin for UnsignedRoomRedactionEvent
impl UnwindSafe for UnsignedRoomRedactionEvent
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)