Struct matrix_sdk_crypto::Emoji
source · pub struct Emoji {
pub symbol: &'static str,
pub description: &'static str,
}
Expand description
An emoji that is used for interactive verification using a short auth string.
This will contain a single emoji and description from the list of emojis from the spec.
Fields§
§symbol: &'static str
The emoji symbol that represents a part of the short auth string, for example: 🐶
description: &'static str
The description of the emoji, for example ‘Dog’.
Trait Implementations§
source§impl PartialEq for Emoji
impl PartialEq for Emoji
source§impl PartialOrd for Emoji
impl PartialOrd for Emoji
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Emoji
impl StructuralEq for Emoji
impl StructuralPartialEq for Emoji
Auto Trait Implementations§
impl RefUnwindSafe for Emoji
impl Send for Emoji
impl Sync for Emoji
impl Unpin for Emoji
impl UnwindSafe for Emoji
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.