Enum sf_api::gamestate::tavern::CurrentAction
source · pub enum CurrentAction {
Idle,
CityGuard {
hours: u8,
busy_until: DateTime<Local>,
},
Quest {
quest_idx: u8,
busy_until: DateTime<Local>,
},
Expedition,
Unkown(Option<DateTime<Local>>),
}
Variants§
Idle
CityGuard
Quest
Expedition
Unkown(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 copy 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§fn eq(&self, other: &CurrentAction) -> bool
fn eq(&self, other: &CurrentAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.