Struct ruma::events::room::message::Replacement [−][src]
pub struct Replacement {
pub event_id: EventId,
pub new_content: Box<MessageEventContent, Global>,
}
This is supported on crate feature
events
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, Global>
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
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