pub struct GameState {
pub type: Option<String>,
pub moves: String,
pub wtime: u64,
pub btime: u64,
pub winc: u64,
pub binc: u64,
pub status: String,
pub winner: Option<String>,
pub wdraw: Option<bool>,
pub bdraw: Option<bool>,
pub wtakeback: Option<bool>,
pub btakeback: Option<bool>,
}Fields§
§type: Option<String>§moves: String§wtime: u64§btime: u64§winc: u64§binc: u64§status: String§winner: Option<String>§wdraw: Option<bool>§bdraw: Option<bool>§wtakeback: Option<bool>§btakeback: Option<bool>Trait Implementations§
source§impl<'de> Deserialize<'de> for GameState
impl<'de> Deserialize<'de> for GameState
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 RefUnwindSafe for GameState
impl Send for GameState
impl Sync for GameState
impl Unpin for GameState
impl UnwindSafe for GameState
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