pub struct GameJson {Show 21 fields
pub id: String,
pub rated: bool,
pub variant: VariantKey,
pub speed: Speed,
pub perf: String,
pub created_at: u64,
pub last_move_at: Option<u64>,
pub status: GameStatus,
pub players: Option<Players>,
pub initial_fen: Option<String>,
pub winner: Option<PlayerColor>,
pub opening: Option<Opening>,
pub moves: Option<String>,
pub pgn: Option<String>,
pub days_per_turn: Option<u64>,
pub analysis: Option<Vec<GameMoveAnalysis>>,
pub tournament: Option<String>,
pub swiss: Option<String>,
pub clock: Option<Clock>,
pub clocks: Option<Vec<u64>>,
pub division: Option<Division>,
}Fields§
§id: String§rated: bool§variant: VariantKey§speed: Speed§perf: String§created_at: u64§last_move_at: Option<u64>§status: GameStatus§players: Option<Players>§initial_fen: Option<String>§winner: Option<PlayerColor>§opening: Option<Opening>§moves: Option<String>§pgn: Option<String>§days_per_turn: Option<u64>§analysis: Option<Vec<GameMoveAnalysis>>§tournament: Option<String>§swiss: Option<String>§clock: Option<Clock>§clocks: Option<Vec<u64>>§division: Option<Division>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameJson
impl<'de> Deserialize<'de> for GameJson
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
Auto Trait Implementations§
impl Freeze for GameJson
impl RefUnwindSafe for GameJson
impl Send for GameJson
impl Sync for GameJson
impl Unpin for GameJson
impl UnwindSafe for GameJson
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