Enum ruma_common::events::relation::AnnotationType
source · pub enum AnnotationType {
Reaction,
// some variants omitted
}Available on crate features
events and unstable-msc2677 only.Expand description
Type of annotation.
This type can hold an arbitrary string. To build this with a custom value, convert it from a
string with ::from() / .into(). To check for values that are not available as a
documented variant here, use its string representation, obtained through
.as_str().
Variants§
Reaction
A reaction.
Implementations§
Trait Implementations§
source§impl AsRef<str> for AnnotationType
impl AsRef<str> for AnnotationType
source§impl Clone for AnnotationType
impl Clone for AnnotationType
source§fn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AnnotationType
impl Debug for AnnotationType
source§impl<'de> Deserialize<'de> for AnnotationType
impl<'de> Deserialize<'de> for AnnotationType
source§fn 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
source§impl Display for AnnotationType
impl Display for AnnotationType
source§impl PartialEq<AnnotationType> for AnnotationType
impl PartialEq<AnnotationType> for AnnotationType
source§fn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AnnotationType
impl Serialize for AnnotationType
impl Eq for AnnotationType
impl StructuralEq for AnnotationType
impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnwindSafe for AnnotationType
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.