Struct ruma_events::room::message::Replacement [−][src]
pub struct Replacement { pub event_id: EventId, pub new_content: Box<MessageEventContent>, }
This is supported on crate feature
unstable-pre-spec
only.Expand description
The event this relation belongs to replaces another event.
Fields
event_id: EventId
The ID of the event being replacing.
new_content: Box<MessageEventContent>
New content.
Implementations
Creates a new Replacement
with the given event ID and new content.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Replacement
impl Send for Replacement
impl Sync for Replacement
impl Unpin for Replacement
impl UnwindSafe for Replacement
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V