pub struct DiceGame {
pub remaining: u8,
pub next_free: Option<DateTime<Local>>,
pub current_dice: Vec<DiceType>,
pub reward: Option<DiceReward>,
}Expand description
Information about the current state of the dice game
Fields§
§remaining: u8The amount of dice games you can still play today
next_free: Option<DateTime<Local>>The next free dice game can be played at this point in time
current_dice: Vec<DiceType>These are the dices, that are laying on the table after the first round. The ones you can select to keep from
reward: Option<DiceReward>Whatever we won in the dice game
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiceGame
impl<'de> Deserialize<'de> for DiceGame
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
Auto Trait Implementations§
impl Freeze for DiceGame
impl RefUnwindSafe for DiceGame
impl Send for DiceGame
impl Sync for DiceGame
impl Unpin for DiceGame
impl UnwindSafe for DiceGame
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