[][src]Struct iracing::session::Driver

pub struct Driver {
    pub index: usize,
    pub user_name: String,
    pub abbrev_name: String,
    pub initials: String,
    pub user_id: i64,
    pub team_id: u64,
    pub team_name: String,
    pub car_number: u64,
    pub car_path: String,
    pub car_class_id: u64,
    pub car_id: u64,
    pub car_screen_name: String,
    pub car_screen_name_short: String,
    pub car_class_short_name: String,
    pub car_class_relative_speed: i64,
    pub car_class_license_level: i64,
    pub car_class_max_fuel_percent: String,
    pub car_class_weight_penalty: String,
    pub car_class_color: String,
    pub i_rating: i64,
    pub license_level: i64,
    pub license_sub_level: i64,
    pub license: String,
    pub is_spectator: i8,
    pub car_design: String,
    pub car_sponsor1: i64,
    pub car_sponsor2: i64,
    pub club_name: Option<String>,
    pub division_name: Option<String>,
}

Details of all drivers (players) in the session, including the current driver.

Contains details of the user-profile of the driver, their License class, Safety Rating, and iRating.

Fields

index: usizeuser_name: Stringabbrev_name: Stringinitials: Stringuser_id: i64team_id: u64team_name: Stringcar_number: u64car_path: Stringcar_class_id: u64car_id: u64car_screen_name: Stringcar_screen_name_short: Stringcar_class_short_name: Stringcar_class_relative_speed: i64car_class_license_level: i64car_class_max_fuel_percent: Stringcar_class_weight_penalty: Stringcar_class_color: Stringi_rating: i64license_level: i64license_sub_level: i64license: Stringis_spectator: i8car_design: Stringcar_sponsor1: i64car_sponsor2: i64club_name: Option<String>division_name: Option<String>

Trait Implementations

impl Clone for Driver[src]

impl Debug for Driver[src]

impl<'de> Deserialize<'de> for Driver[src]

impl Serialize for Driver[src]

Auto Trait Implementations

impl RefUnwindSafe for Driver

impl Send for Driver

impl Sync for Driver

impl Unpin for Driver

impl UnwindSafe for Driver

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.