Struct common::UserData [] [src]

pub struct UserData {
    pub user_id: u32,
    pub move_to: char,
    pub new_game: bool,
}

Outgoing and incoming data is parsed to this via JSON

Fields

Trait Implementations

impl Encodable for UserData
[src]

[src]

Serialize a value using an Encoder.

impl Decodable for UserData
[src]

[src]

Deserialize a value using a Decoder.

impl Debug for UserData
[src]

[src]

Formats the value using the given formatter.