pub struct GuildHydra {
pub last_battle: Option<DateTime<Local>>,
pub last_full: Option<DateTime<Local>>,
pub next_battle: Option<DateTime<Local>>,
pub remaining_fights: u16,
pub current_life: u64,
pub max_life: u64,
pub attributes: EnumMap<AttributeType, u32>,
}Expand description
The hydra, that the guild pet can fight
Fields§
§last_battle: Option<DateTime<Local>>The last time the hydra has been fought
last_full: Option<DateTime<Local>>The last time the hydra has been seen with full health
next_battle: Option<DateTime<Local>>This seems to be last_battle + 30 min. I can only do 1 battle/day,
but I think this should be the next possible fight
remaining_fights: u16The amount of times the player can still fight the hydra
current_life: u64The current life of the guilds hydra
max_life: u64The maximum life the hydra can have
attributes: EnumMap<AttributeType, u32>The attributes the hydra has
Trait Implementations§
Source§impl Clone for GuildHydra
impl Clone for GuildHydra
Source§fn clone(&self) -> GuildHydra
fn clone(&self) -> GuildHydra
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 GuildHydra
impl Debug for GuildHydra
Source§impl Default for GuildHydra
impl Default for GuildHydra
Source§fn default() -> GuildHydra
fn default() -> GuildHydra
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GuildHydra
impl<'de> Deserialize<'de> for GuildHydra
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 GuildHydra
impl RefUnwindSafe for GuildHydra
impl Send for GuildHydra
impl Sync for GuildHydra
impl Unpin for GuildHydra
impl UnwindSafe for GuildHydra
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