Struct botapi::gen_types::NoSkipDice
source · pub struct NoSkipDice {
pub emoji: String,
pub value: i64,
}
Expand description
Companion type to Dice that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§emoji: String
Emoji on which the dice throw animation is based
value: i64
Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji
Implementations§
Trait Implementations§
source§impl Clone for NoSkipDice
impl Clone for NoSkipDice
source§fn clone(&self) -> NoSkipDice
fn clone(&self) -> NoSkipDice
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 NoSkipDice
impl Debug for NoSkipDice
source§impl Default for NoSkipDice
impl Default for NoSkipDice
source§fn default() -> NoSkipDice
fn default() -> NoSkipDice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipDice
impl<'de> Deserialize<'de> for NoSkipDice
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 From<NoSkipDice> for Dice
impl From<NoSkipDice> for Dice
source§fn from(t: NoSkipDice) -> Self
fn from(t: NoSkipDice) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipDice
impl Hash for NoSkipDice
source§impl Into<NoSkipDice> for Dice
impl Into<NoSkipDice> for Dice
source§fn into(self) -> NoSkipDice
fn into(self) -> NoSkipDice
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipDice
impl Ord for NoSkipDice
source§fn cmp(&self, other: &NoSkipDice) -> Ordering
fn cmp(&self, other: &NoSkipDice) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoSkipDice
impl PartialEq for NoSkipDice
source§fn eq(&self, other: &NoSkipDice) -> bool
fn eq(&self, other: &NoSkipDice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipDice
impl PartialOrd for NoSkipDice
source§fn partial_cmp(&self, other: &NoSkipDice) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipDice) -> Option<Ordering>
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 moresource§impl Serialize for NoSkipDice
impl Serialize for NoSkipDice
impl Eq for NoSkipDice
impl StructuralPartialEq for NoSkipDice
Auto Trait Implementations§
impl Freeze for NoSkipDice
impl RefUnwindSafe for NoSkipDice
impl Send for NoSkipDice
impl Sync for NoSkipDice
impl Unpin for NoSkipDice
impl UnwindSafe for NoSkipDice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.