Struct chesscom_openapi::models::completed_game::CompletedGame[][src]

pub struct CompletedGame {
    pub white: PlayerResult,
    pub black: PlayerResult,
    pub url: String,
    pub fen: String,
    pub pgn: String,
    pub start_time: Option<DateTime<Utc>>,
    pub end_time: i32,
    pub rated: bool,
    pub time_control: String,
    pub time_class: TimeClass,
    pub rules: Rules,
    pub eco: Option<String>,
    pub tournament: Option<String>,
    pub _match: Option<String>,
}

Fields

white: PlayerResultblack: PlayerResulturl: String

URL of this game

fen: String

Current FEN

pgn: String

Current PGN

start_time: Option<DateTime<Utc>>

Timestamp of the game start (Daily Chess only)

end_time: i32

Timestamp of the game end

rated: bool

Indicates if the game was rated

time_control: String

PGN-compliant time control

time_class: TimeClass

Time-per-move grouping, used for ratings

rules: Rules

Game variant information (e.g., "chess960")

eco: Option<String>

URL pointing to ECO opening (if available)

tournament: Option<String>

URL pointing to tournament (if available)

_match: Option<String>

URL pointing to team match (if available)

Implementations

impl CompletedGame[src]

pub fn new(
    white: PlayerResult,
    black: PlayerResult,
    url: String,
    fen: String,
    pgn: String,
    end_time: i32,
    rated: bool,
    time_control: String,
    time_class: TimeClass,
    rules: Rules
) -> CompletedGame
[src]

Trait Implementations

impl Clone for CompletedGame[src]

impl Debug for CompletedGame[src]

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

impl PartialEq<CompletedGame> for CompletedGame[src]

impl Serialize for CompletedGame[src]

impl StructuralPartialEq for CompletedGame[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> 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.