#[non_exhaustive]pub struct UnsignedRoomRedactionEvent {
pub content: RoomRedactionEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: MessageLikeUnsigned<RoomRedactionEventContent>,
}
Available on crate feature
events
only.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<UnsignedRoomRedactionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsignedRoomRedactionEvent, <__D as Deserializer<'de>>::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