pub struct FightSchema {
pub xp: i32,
pub gold: i32,
pub drops: Vec<DropSchema>,
pub turns: i32,
pub logs: Vec<String>,
pub result: FightResult,
}Fields§
§xp: i32The amount of xp gained from the fight.
gold: i32The amount of gold gained from the fight.
drops: Vec<DropSchema>The items dropped from the fight.
turns: i32Numbers of the turns of the combat.
logs: Vec<String>The fight logs.
result: FightResultThe result of the fight.
Implementations§
Source§impl FightSchema
impl FightSchema
pub fn new( xp: i32, gold: i32, drops: Vec<DropSchema>, turns: i32, logs: Vec<String>, result: FightResult, ) -> FightSchema
Trait Implementations§
Source§impl Clone for FightSchema
impl Clone for FightSchema
Source§fn clone(&self) -> FightSchema
fn clone(&self) -> FightSchema
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 FightSchema
impl Debug for FightSchema
Source§impl Default for FightSchema
impl Default for FightSchema
Source§fn default() -> FightSchema
fn default() -> FightSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FightSchema
impl<'de> Deserialize<'de> for FightSchema
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 FightSchema
impl PartialEq for FightSchema
Source§impl Serialize for FightSchema
impl Serialize for FightSchema
impl StructuralPartialEq for FightSchema
Auto Trait Implementations§
impl Freeze for FightSchema
impl RefUnwindSafe for FightSchema
impl Send for FightSchema
impl Sync for FightSchema
impl Unpin for FightSchema
impl UnwindSafe for FightSchema
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