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
sourceimpl AnnotationType
impl AnnotationType
Trait Implementations
sourceimpl AsRef<str> for AnnotationType
impl AsRef<str> for AnnotationType
sourceimpl Clone for AnnotationType
impl Clone for AnnotationType
sourcefn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
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 AnnotationType
impl Debug for AnnotationType
sourceimpl<'de> Deserialize<'de> for AnnotationType
impl<'de> Deserialize<'de> for AnnotationType
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 Display for AnnotationType
impl Display for AnnotationType
sourceimpl PartialEq<AnnotationType> for AnnotationType
impl PartialEq<AnnotationType> for AnnotationType
sourcefn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
sourceimpl 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
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.