Expand description
Represents a Dice.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: u8The value of the dice in the range [1, 6] for 🎲, 🎯 and 🎳;
[1, 5] for 🏀 and ⚽; [1, 64] for 🎰.
kind: KindThe kind of the thrown dice.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dice
impl<'de> Deserialize<'de> for Dice
source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more