Struct ruma_common::events::room::encrypted::Replacement
source · [−]pub struct Replacement {
pub event_id: OwnedEventId,
}
Available on crate features
events
and unstable-msc2676
only.Expand description
The event this relation belongs to replaces another event.
In contrast to message::Replacement
, this struct doesn’t
store the new content, since that is part of the encrypted content of an m.room.encrypted
events.
Fields
event_id: OwnedEventId
The ID of the event being replacing.
Trait Implementations
sourceimpl Clone for Replacement
impl Clone for Replacement
sourcefn clone(&self) -> Replacement
fn clone(&self) -> Replacement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Replacement
impl Debug for Replacement
sourceimpl<'de> Deserialize<'de> for Replacement
impl<'de> Deserialize<'de> for Replacement
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Replacement
impl Serialize for Replacement
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more