Struct hikaru::GameData[][src]

pub struct GameData {
    pub game_url: String,
    pub time_control: String,
    pub start_time: Option<u32>,
    pub end_time: u32,
    pub rated: bool,
    pub fen: String,
    pub time_class: TimeClass,
    pub rules: Rules,
    pub eco_game: Option<String>,
    pub tournament: Option<String>,
    pub team_match: Option<String>,
    pub white_rating: u32,
    pub white_username: String,
    pub black_rating: u32,
    pub black_username: String,
    pub eco_pgn: String,
    pub eco_url: String,
    pub result: GameResult,
    pub result_win_lose: GameResultWinLose,
    pub rating: u32,
    pub date: String,
    pub colour: String,
    pub win: f32,
    pub player_username: String,
}

Fields

game_url: Stringtime_control: Stringstart_time: Option<u32>end_time: u32rated: boolfen: Stringtime_class: TimeClassrules: Ruleseco_game: Option<String>tournament: Option<String>team_match: Option<String>white_rating: u32white_username: Stringblack_rating: u32black_username: Stringeco_pgn: Stringeco_url: Stringresult: GameResultresult_win_lose: GameResultWinLoserating: u32date: Stringcolour: Stringwin: f32player_username: String

Implementations

impl GameData[src]

pub fn download(users: Vec<&str>) -> Vec<GameData>[src]

Trait Implementations

impl Debug for GameData[src]

impl From<(Game, &'_ str)> for GameData[src]

impl Serialize for GameData[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

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.