pub enum CurrentAction {
Idle,
CityGuard {
hours: u8,
busy_until: DateTime<Local>,
},
Quest {
quest_idx: u8,
busy_until: DateTime<Local>,
},
Expedition,
Unknown(Option<DateTime<Local>>),
}
Expand description
The thing the player is currently doing
Variants§
Idle
The character is not doing anything and can basically do anything
CityGuard
The character is working on guard duty right now. If busy_until < Local::now()
, you can send a WorkFinish
command
Fields
Quest
The character is doing a quest right now. If busy_until < Local::now()
you can send a FinishQuest
command
Fields
Expedition
The player is currently doing an expedition. This can be wrong, if the last expedition timer elapsed since sending the last request
Unknown(Option<DateTime<Local>>)
The character is not able to do something, but we do not know what. Most likely something from a new update
Trait Implementations§
Source§impl Clone for CurrentAction
impl Clone for CurrentAction
Source§fn clone(&self) -> CurrentAction
fn clone(&self) -> CurrentAction
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 CurrentAction
impl Debug for CurrentAction
Source§impl Default for CurrentAction
impl Default for CurrentAction
Source§fn default() -> CurrentAction
fn default() -> CurrentAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurrentAction
impl<'de> Deserialize<'de> for CurrentAction
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
Source§impl PartialEq for CurrentAction
impl PartialEq for CurrentAction
Source§impl Serialize for CurrentAction
impl Serialize for CurrentAction
impl Copy for CurrentAction
impl Eq for CurrentAction
impl StructuralPartialEq for CurrentAction
Auto Trait Implementations§
impl Freeze for CurrentAction
impl RefUnwindSafe for CurrentAction
impl Send for CurrentAction
impl Sync for CurrentAction
impl Unpin for CurrentAction
impl UnwindSafe for CurrentAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.