pub struct DateChange {
pub days: u32,
pub date: Date,
pub previous: Date,
}Expand description
The payload of anvil-game.day, .month and .year.
Fields§
§days: u32How many days the step covers: 1 in a single-player game, perhaps more on a multiplayer client.
date: DateThe date now.
previous: DateThe date before.
Trait Implementations§
Source§impl Clone for DateChange
impl Clone for DateChange
impl Copy for DateChange
Source§impl Debug for DateChange
impl Debug for DateChange
impl Eq for DateChange
Source§impl PartialEq for DateChange
impl PartialEq for DateChange
Source§impl Payload for DateChange
impl Payload for DateChange
impl StructuralPartialEq for DateChange
Auto Trait Implementations§
impl Forget for DateChange
impl Freeze for DateChange
impl Move for DateChange
impl RefUnwindSafe for DateChange
impl Send for DateChange
impl Sync for DateChange
impl Unpin for DateChange
impl UnsafeUnpin for DateChange
impl UnwindSafe for DateChange
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