Struct matrix_sdk_base::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>,
) -> 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more