pub enum ReactionType {
Unique,
Distinct,
Multiple,
Other(String),
}Expand description
The reaction aggregation model.
Forward-compatible: an unknown wire value is preserved in Other rather
than failing deserialization (ADR-0007).
Variants§
Unique
At most one reaction per client.
Distinct
At most one of each named reaction per client.
Multiple
Repeatable and counted.
Other(String)
An unrecognised reaction type, preserved verbatim.
Trait Implementations§
Source§impl Clone for ReactionType
impl Clone for ReactionType
Source§fn clone(&self) -> ReactionType
fn clone(&self) -> ReactionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReactionType
impl Debug for ReactionType
Source§impl<'de> Deserialize<'de> for ReactionType
impl<'de> Deserialize<'de> for ReactionType
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
impl Eq for ReactionType
Source§impl From<ReactionType> for String
impl From<ReactionType> for String
Source§fn from(t: ReactionType) -> String
fn from(t: ReactionType) -> String
Converts to this type from the input type.
Source§impl From<String> for ReactionType
impl From<String> for ReactionType
Source§impl PartialEq for ReactionType
impl PartialEq for ReactionType
Source§impl Serialize for ReactionType
impl Serialize for ReactionType
impl StructuralPartialEq for ReactionType
Auto Trait Implementations§
impl Freeze for ReactionType
impl RefUnwindSafe for ReactionType
impl Send for ReactionType
impl Sync for ReactionType
impl Unpin for ReactionType
impl UnsafeUnpin for ReactionType
impl UnwindSafe for ReactionType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more