pub struct CompletedGame {Show 14 fields
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: PlayerResult§black: PlayerResult§url: StringURL of this game
fen: StringCurrent FEN
pgn: StringCurrent PGN
start_time: Option<DateTime<Utc>>Timestamp of the game start (Daily Chess only)
end_time: i32Timestamp of the game end
rated: boolIndicates if the game was rated
time_control: StringPGN-compliant time control
time_class: TimeClassTime-per-move grouping, used for ratings
rules: RulesGame 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§
Source§impl CompletedGame
impl CompletedGame
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
Trait Implementations§
Source§impl Clone for CompletedGame
impl Clone for CompletedGame
Source§fn clone(&self) -> CompletedGame
fn clone(&self) -> CompletedGame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletedGame
impl Debug for CompletedGame
Source§impl<'de> Deserialize<'de> for CompletedGame
impl<'de> Deserialize<'de> for CompletedGame
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
Source§impl PartialEq for CompletedGame
impl PartialEq for CompletedGame
Source§impl Serialize for CompletedGame
impl Serialize for CompletedGame
impl StructuralPartialEq for CompletedGame
Auto Trait Implementations§
impl Freeze for CompletedGame
impl RefUnwindSafe for CompletedGame
impl Send for CompletedGame
impl Sync for CompletedGame
impl Unpin for CompletedGame
impl UnwindSafe for CompletedGame
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