pub struct ReplacementMetadata { /* private fields */ }
Available on crate feature
events
only.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>,
) -> ReplacementMetadata
pub fn new( event_id: OwnedEventId, mentions: Option<Mentions>, ) -> ReplacementMetadata
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: &OriginalMessageLikeEvent<RoomMessageEventContent>,
) -> ReplacementMetadata
fn from( value: &OriginalMessageLikeEvent<RoomMessageEventContent>, ) -> ReplacementMetadata
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: &OriginalSyncMessageLikeEvent<RoomMessageEventContent>,
) -> ReplacementMetadata
fn from( value: &OriginalSyncMessageLikeEvent<RoomMessageEventContent>, ) -> ReplacementMetadata
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