pub struct Arena {
pub enemy_ids: [PlayerId; 3],
pub next_free_fight: Option<DateTime<Local>>,
pub fights_for_xp: u8,
}Expand description
The arena, that a player can fight other players in
Fields§
§enemy_ids: [PlayerId; 3]The enemies currently available in the arena. You have to fetch the full player info before fighting them, as you need their name
next_free_fight: Option<DateTime<Local>>The time at which the player will be able to fight for free again
fights_for_xp: u8The amount of fights this character has already fought today, that gave xp. 0-10
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Arena
impl<'de> Deserialize<'de> for Arena
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 Arena
impl RefUnwindSafe for Arena
impl Send for Arena
impl Sync for Arena
impl Unpin for Arena
impl UnwindSafe for Arena
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