pub struct Field {
pub name: &'static str,
pub default: FieldDefault,
pub combined_string: &'static str,
pub version: usize,
pub max_version: usize,
pub field_type: FieldType,
}
Expand description
A data structure that holds information about a field found in battle results.
Fields§
§name: &'static str
Name of the battle result field. Ex: damageDealt
default: FieldDefault
Default value of the battle result
combined_string: &'static str
A value needed to generate the checksum. This value comes from WoT’s python code
version: usize
A relative number that tells us when this field was introduced
max_version: usize
A relative number that tells us the last version before the field was removed
field_type: FieldType
The context where this field occurs. Ex: damageDealt is found for the player themselves(VehicleSelf) and all the other players in battle(VehicleAll)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more