pub struct DailyGame {Show 15 fields
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: Player
§move_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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DailyGame
impl<'de> Deserialize<'de> for DailyGame
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
impl StructuralPartialEq for DailyGame
Auto Trait Implementations§
impl Freeze for DailyGame
impl RefUnwindSafe for DailyGame
impl Send for DailyGame
impl Sync for DailyGame
impl Unpin for DailyGame
impl UnwindSafe for DailyGame
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