Struct ruma_events::room::message::ReplacementMetadata
source · pub struct ReplacementMetadata { /* private fields */ }
Expand description
Metadata about an event to be replaced.
To be used with RoomMessageEventContent::make_replacement
.
Implementations§
source§impl ReplacementMetadata
impl ReplacementMetadata
sourcepub fn new(event_id: OwnedEventId, mentions: Option<Mentions>) -> Self
pub fn new(event_id: OwnedEventId, mentions: Option<Mentions>) -> Self
Creates a new ReplacementMetadata
with the given event ID and mentions.
Trait Implementations§
source§impl Debug for ReplacementMetadata
impl Debug for ReplacementMetadata
source§impl From<&OriginalMessageLikeEvent<RoomMessageEventContent>> for ReplacementMetadata
impl From<&OriginalMessageLikeEvent<RoomMessageEventContent>> for ReplacementMetadata
source§fn from(value: &OriginalRoomMessageEvent) -> Self
fn from(value: &OriginalRoomMessageEvent) -> Self
Converts to this type from the input type.
source§impl From<&OriginalSyncMessageLikeEvent<RoomMessageEventContent>> for ReplacementMetadata
impl From<&OriginalSyncMessageLikeEvent<RoomMessageEventContent>> for ReplacementMetadata
source§fn from(value: &OriginalSyncRoomMessageEvent) -> Self
fn from(value: &OriginalSyncRoomMessageEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplacementMetadata
impl RefUnwindSafe for ReplacementMetadata
impl Send for ReplacementMetadata
impl Sync for ReplacementMetadata
impl Unpin for ReplacementMetadata
impl UnwindSafe for ReplacementMetadata
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