#[non_exhaustive]pub struct FinalClassificationData {Show 14 fields
pub position: u8,
pub num_laps: u8,
pub grid_position: u8,
pub points: u8,
pub num_pit_stops: u8,
pub result_status: ResultStatus,
pub best_lap_time_ms: u32,
pub total_race_time: f64,
pub penalties_time: u8,
pub num_penalties: u8,
pub num_tyre_stints: usize,
pub tyre_stints_actual: Vec<ActualTyreCompound>,
pub tyre_stints_visual: Vec<VisualTyreCompound>,
pub tyre_stints_end_laps: Vec<u8>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.position: u8Finishing position.
num_laps: u8Number of laps completed.
grid_position: u8Grid position of the car.
points: u8Number of points scored.
num_pit_stops: u8Number of pit stops made.
result_status: ResultStatusResult status.
best_lap_time_ms: u32Best lap time of the session in milliseconds.
total_race_time: f64Total race time in seconds (without penalties).
penalties_time: u8Total penalties accumulated in seconds.
num_penalties: u8Number of penalties applied to this driver.
num_tyre_stints: usizeNumber of tyre stints.
tyre_stints_actual: Vec<ActualTyreCompound>Actual tyres used by the driver.
Should have a size equal to
num_tyre_stints.
tyre_stints_visual: Vec<VisualTyreCompound>Visual tyres used by the driver.
Should have a size equal to
num_tyre_stints.
tyre_stints_end_laps: Vec<u8>The lap numbers the stints end on.
Should have a size equal to
num_tyre_stints.
Trait Implementations§
Source§impl BinRead for FinalClassificationData
impl BinRead for FinalClassificationData
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for FinalClassificationData
impl Clone for FinalClassificationData
Source§fn clone(&self) -> FinalClassificationData
fn clone(&self) -> FinalClassificationData
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 FinalClassificationData
impl Debug for FinalClassificationData
Source§impl<'de> Deserialize<'de> for FinalClassificationData
impl<'de> Deserialize<'de> for FinalClassificationData
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 FinalClassificationData
impl PartialEq for FinalClassificationData
Source§impl PartialOrd for FinalClassificationData
impl PartialOrd for FinalClassificationData
Source§impl ReadEndian for FinalClassificationData
impl ReadEndian for FinalClassificationData
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for FinalClassificationData
impl Serialize for FinalClassificationData
impl StructuralPartialEq for FinalClassificationData
Auto Trait Implementations§
impl Freeze for FinalClassificationData
impl RefUnwindSafe for FinalClassificationData
impl Send for FinalClassificationData
impl Sync for FinalClassificationData
impl Unpin for FinalClassificationData
impl UnwindSafe for FinalClassificationData
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