pub struct GameStateEvent {
pub type: Option<String>,
pub moves: String,
pub wtime: u64,
pub btime: u64,
pub winc: u64,
pub binc: u64,
pub status: GameStatusName,
pub winner: Option<GameColor>,
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: GameStatusName§winner: Option<GameColor>§wdraw: Option<bool>§bdraw: Option<bool>§wtakeback: Option<bool>§btakeback: Option<bool>Trait Implementations§
Source§impl Clone for GameStateEvent
impl Clone for GameStateEvent
Source§fn clone(&self) -> GameStateEvent
fn clone(&self) -> GameStateEvent
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 GameStateEvent
impl Debug for GameStateEvent
Source§impl<'de> Deserialize<'de> for GameStateEvent
impl<'de> Deserialize<'de> for GameStateEvent
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 GameStateEvent
impl RefUnwindSafe for GameStateEvent
impl Send for GameStateEvent
impl Sync for GameStateEvent
impl Unpin for GameStateEvent
impl UnwindSafe for GameStateEvent
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