Struct ruma_common::events::relation::BundledAnnotation
source · [−]pub struct BundledAnnotation {
pub annotation_type: AnnotationType,
pub key: String,
pub origin_server_ts: Option<MilliSecondsSinceUnixEpoch>,
pub count: UInt,
}
Available on crate features
events
and unstable-msc2677
only.Expand description
Summary of all annotations to an event with the given key and type.
Fields
annotation_type: AnnotationType
The type of the annotation.
key: String
The key used for the annotation.
origin_server_ts: Option<MilliSecondsSinceUnixEpoch>
Time of the bundled annotation being compiled on the server.
count: UInt
Number of annotations.
Implementations
Trait Implementations
sourceimpl Clone for BundledAnnotation
impl Clone for BundledAnnotation
sourcefn clone(&self) -> BundledAnnotation
fn clone(&self) -> BundledAnnotation
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 BundledAnnotation
impl Debug for BundledAnnotation
sourceimpl<'de> Deserialize<'de> for BundledAnnotation
impl<'de> Deserialize<'de> for BundledAnnotation
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 PartialEq<BundledAnnotation> for BundledAnnotation
impl PartialEq<BundledAnnotation> for BundledAnnotation
sourcefn eq(&self, other: &BundledAnnotation) -> bool
fn eq(&self, other: &BundledAnnotation) -> bool
sourceimpl Serialize for BundledAnnotation
impl Serialize for BundledAnnotation
impl Eq for BundledAnnotation
impl StructuralEq for BundledAnnotation
impl StructuralPartialEq for BundledAnnotation
Auto Trait Implementations
impl RefUnwindSafe for BundledAnnotation
impl Send for BundledAnnotation
impl Sync for BundledAnnotation
impl Unpin for BundledAnnotation
impl UnwindSafe for BundledAnnotation
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.