Struct google_games1::Room [] [src]

pub struct Room {
    pub status: Option<String>,
    pub kind: Option<String>,
    pub auto_matching_criteria: Option<RoomAutoMatchingCriteria>,
    pub creation_details: Option<RoomModification>,
    pub description: Option<String>,
    pub room_status_version: Option<i32>,
    pub auto_matching_status: Option<RoomAutoMatchStatus>,
    pub last_update_details: Option<RoomModification>,
    pub variant: Option<i32>,
    pub participants: Option<Vec<RoomParticipant>>,
    pub room_id: Option<String>,
    pub application_id: Option<String>,
    pub inviter_id: Option<String>,
}

This is a JSON template for a room resource object.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

The status of the room. Possible values are:
- "ROOM_INVITING" - One or more players have been invited and not responded. - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching). - "ROOM_ACTIVE" - All players have joined and connected to each other. - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.

Uniquely identifies the type of this resource. Value is always the fixed string games#room.

Criteria for auto-matching players into this room.

Details about the room creation.

This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)

The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.

Auto-matching status for this room. Not set if the room is not currently in the auto-matching queue.

Details about the last update to the room.

The variant / mode of the application being played; can be any integer value, or left blank.

The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.

Globally unique ID for a room.

The ID of the application being played.

The ID of the participant that invited the user to the room. Not set if the user was not invited to the room.

Trait Implementations

impl Debug for Room
[src]

Formats the value using the given formatter.

impl Clone for Room
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Room
[src]

Returns the "default value" for a type. Read more

impl Resource for Room
[src]

impl ResponseResult for Room
[src]