Struct ruma_events::room::redaction::SyncRedactionEvent [−][src]
pub struct SyncRedactionEvent {
pub content: RedactionEventContent,
pub redacts: EventId,
pub event_id: EventId,
pub sender: UserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: Unsigned,
}
Expand description
Redaction event without a room_id
.
Fields
content: RedactionEventContent
Data specific to the event type.
redacts: EventId
The ID of the event that was redacted.
event_id: EventId
The globally unique event identifier for the user who sent the event.
sender: UserId
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: Unsigned
Additional key-value pairs not signed by the homeserver.
Implementations
Convert this sync event into a full event, one with a room_id field.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This compares EventId
s and orders them lexicographically.
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyncRedactionEvent
impl Send for SyncRedactionEvent
impl Sync for SyncRedactionEvent
impl Unpin for SyncRedactionEvent
impl UnwindSafe for SyncRedactionEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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