Struct chesscom_openapi::models::daily_game::DailyGame[][src]

pub struct DailyGame {
    pub white: String,
    pub black: String,
    pub url: String,
    pub fen: String,
    pub pgn: String,
    pub turn: Player,
    pub move_by: Option<DateTime<Utc>>,
    pub draw_offer: Option<Player>,
    pub last_activity: DateTime<Utc>,
    pub start_time: Option<DateTime<Utc>>,
    pub time_control: String,
    pub time_class: TimeClass,
    pub rules: Rules,
    pub tournament: Option<String>,
    pub _match: Option<String>,
}

Fields

white: String

URL of the white player’s profile

black: String

URL of the black player’s profile

url: String

URL of this game

fen: String

current FEN

pgn: String

current PGN

turn: Playermove_by: Option<DateTime<Utc>>

timestamp of when the next move must be made

draw_offer: Option<Player>last_activity: DateTime<Utc>

timestamp of the last activity on the game

start_time: Option<DateTime<Utc>>

timestamp of the game start (Daily Chess only)

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")

tournament: Option<String>

URL pointing to tournament (if available)

_match: Option<String>

URL pointing to team match (if available)

Implementations

impl DailyGame[src]

pub fn new(
    white: String,
    black: String,
    url: String,
    fen: String,
    pgn: String,
    turn: Player,
    last_activity: DateTime<Utc>,
    time_control: String,
    time_class: TimeClass,
    rules: Rules
) -> DailyGame
[src]

Trait Implementations

impl Clone for DailyGame[src]

impl Debug for DailyGame[src]

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

impl PartialEq<DailyGame> for DailyGame[src]

impl Serialize for DailyGame[src]

impl StructuralPartialEq for DailyGame[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.