pub struct FighterStats {
pub messages_sent: u64,
pub tokens_used: u64,
pub bouts_won: u64,
pub knockouts: u64,
}Expand description
Runtime statistics for a Fighter.
Fields§
§messages_sent: u64Total messages sent by this Fighter.
tokens_used: u64Total tokens consumed.
bouts_won: u64Number of bouts won (tasks completed successfully).
knockouts: u64Number of knockouts (unrecoverable errors).
Trait Implementations§
Source§impl Clone for FighterStats
impl Clone for FighterStats
Source§fn clone(&self) -> FighterStats
fn clone(&self) -> FighterStats
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 FighterStats
impl Debug for FighterStats
Source§impl Default for FighterStats
impl Default for FighterStats
Source§fn default() -> FighterStats
fn default() -> FighterStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FighterStats
impl<'de> Deserialize<'de> for FighterStats
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 FighterStats
impl RefUnwindSafe for FighterStats
impl Send for FighterStats
impl Sync for FighterStats
impl Unpin for FighterStats
impl UnsafeUnpin for FighterStats
impl UnwindSafe for FighterStats
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