Struct star_realms_rs::Game [−][src]
pub struct Game { pub id: i64, pub timing: String, pub mmdata: String, pub clientdata: ClientData, pub opponentname: String, pub actionneeded: bool, pub endreason: i64, pub won: bool, pub lastupdatedtime: String, pub isleaguegame: bool, pub istournamentgame: bool, }
Fields
id: i64
timing: String
mmdata: String
clientdata: ClientData
opponentname: String
actionneeded: bool
endreason: i64
won: bool
lastupdatedtime: String
isleaguegame: bool
istournamentgame: bool
Implementations
Returns if the game is finished or not
Returns the name of the player whose turn it currently is
Returns true if the logged in user is the player one of the Game
Trait Implementations
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 Game
impl UnwindSafe for Game