pub struct HellevatorEvent {
pub start: Option<DateTime<Local>>,
pub end: Option<DateTime<Local>>,
pub collect_time_end: Option<DateTime<Local>>,
/* private fields */
}Expand description
Information about the Hellevator event on the server. If it is active, you
can get more detailed info via active()
Fields§
§start: Option<DateTime<Local>>The time the hellevator event was enabled at
end: Option<DateTime<Local>>The time the hellevator event will be disabled at
collect_time_end: Option<DateTime<Local>>The time at which you will no longer be able to collect things for the hellevator
Implementations§
Source§impl HellevatorEvent
impl HellevatorEvent
Sourcepub fn is_event_ongoing(&self) -> bool
pub fn is_event_ongoing(&self) -> bool
Checks if the event has started and not yet ended compared to the current time
Sourcepub fn status(&self) -> HellevatorStatus<'_>
pub fn status(&self) -> HellevatorStatus<'_>
If the Hellevator event is active, this returns a reference to the Information about it. Note that you still need to check the level >= 10 requirement yourself
Trait Implementations§
Source§impl Clone for HellevatorEvent
impl Clone for HellevatorEvent
Source§fn clone(&self) -> HellevatorEvent
fn clone(&self) -> HellevatorEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HellevatorEvent
impl Debug for HellevatorEvent
Source§impl Default for HellevatorEvent
impl Default for HellevatorEvent
Source§fn default() -> HellevatorEvent
fn default() -> HellevatorEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HellevatorEvent
impl<'de> Deserialize<'de> for HellevatorEvent
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 HellevatorEvent
impl RefUnwindSafe for HellevatorEvent
impl Send for HellevatorEvent
impl Sync for HellevatorEvent
impl Unpin for HellevatorEvent
impl UnwindSafe for HellevatorEvent
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