pub struct CombatSimulationDataSchema {
    pub results: Vec<CombatResultSchema>,
    pub wins: i32,
    pub losses: i32,
    pub winrate: f64,
}Fields§
§results: Vec<CombatResultSchema>Results from each combat iteration.
wins: i32Total number of victories.
losses: i32Total number of defeats.
winrate: f64Win rate percentage (0-100).
Implementations§
Source§impl CombatSimulationDataSchema
 
impl CombatSimulationDataSchema
pub fn new( results: Vec<CombatResultSchema>, wins: i32, losses: i32, winrate: f64, ) -> CombatSimulationDataSchema
Trait Implementations§
Source§impl Clone for CombatSimulationDataSchema
 
impl Clone for CombatSimulationDataSchema
Source§fn clone(&self) -> CombatSimulationDataSchema
 
fn clone(&self) -> CombatSimulationDataSchema
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 CombatSimulationDataSchema
 
impl Debug for CombatSimulationDataSchema
Source§impl Default for CombatSimulationDataSchema
 
impl Default for CombatSimulationDataSchema
Source§fn default() -> CombatSimulationDataSchema
 
fn default() -> CombatSimulationDataSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CombatSimulationDataSchema
 
impl<'de> Deserialize<'de> for CombatSimulationDataSchema
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
impl StructuralPartialEq for CombatSimulationDataSchema
Auto Trait Implementations§
impl Freeze for CombatSimulationDataSchema
impl RefUnwindSafe for CombatSimulationDataSchema
impl Send for CombatSimulationDataSchema
impl Sync for CombatSimulationDataSchema
impl Unpin for CombatSimulationDataSchema
impl UnwindSafe for CombatSimulationDataSchema
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