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: i64timing: Stringmmdata: Stringclientdata: ClientDataopponentname: Stringactionneeded: boolendreason: i64won: boollastupdatedtime: Stringisleaguegame: boolistournamentgame: 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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.