pub struct Wheel {
pub lucky_coins: u32,
pub spins_today: u8,
pub next_free_spin: Option<DateTime<Local>>,
pub result: Option<WheelReward>,
}
Expand description
Dr. Abawuwu’s wheel
Fields§
§lucky_coins: u32
The amount of lucky coins you have to spin the weel
spins_today: u8
The amount of times you have spun the wheel today already (0 -> 20)
next_free_spin: Option<DateTime<Local>>
The next time you can spin the wheel for free
result: Option<WheelReward>
The result of spinning the wheel
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wheel
impl<'de> Deserialize<'de> for Wheel
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 Wheel
impl RefUnwindSafe for Wheel
impl Send for Wheel
impl Sync for Wheel
impl Unpin for Wheel
impl UnwindSafe for Wheel
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