Struct ruma_common::events::room::encrypted::Annotation
source · [−]pub struct Annotation {
pub event_id: OwnedEventId,
pub key: String,
}
Available on crate features
events
and unstable-msc2677
only.Expand description
An annotation for an event.
Fields
event_id: OwnedEventId
The event that is being annotated.
key: String
The annotation.
Implementations
sourceimpl Annotation
impl Annotation
sourcepub fn new(event_id: OwnedEventId, key: String) -> Self
pub fn new(event_id: OwnedEventId, key: String) -> Self
Creates a new Annotation
with the given event ID and key.
Trait Implementations
sourceimpl Clone for Annotation
impl Clone for Annotation
sourcefn clone(&self) -> Annotation
fn clone(&self) -> Annotation
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 Annotation
impl Debug for Annotation
sourceimpl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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 Annotation
impl Serialize for Annotation
Auto Trait Implementations
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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