pub struct Calendar {
pub collected: usize,
pub rewards: Vec<CalendarReward>,
pub next_possible: Option<DateTime<Local>>,
}Expand description
Grants rewards once a day
Fields§
§collected: usizeThe amount of times the calendar has been collected already.
rewards[collected] will give you the position in the rewards you will
get for collecting today (if you can)
rewards: Vec<CalendarReward>The things you can get from the calendar
next_possible: Option<DateTime<Local>>The time at which the calendar door will be unlocked. If this is in the past, that means it is available to open
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Calendar
impl<'de> Deserialize<'de> for Calendar
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 Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
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