[][src]Struct google_games1::TurnBasedMatch

pub struct TurnBasedMatch {
    pub status: Option<String>,
    pub auto_matching_criteria: Option<TurnBasedAutoMatchingCriteria>,
    pub inviter_id: Option<String>,
    pub match_version: Option<i32>,
    pub variant: Option<i32>,
    pub match_id: Option<String>,
    pub rematch_id: Option<String>,
    pub results: Option<Vec<ParticipantResult>>,
    pub match_number: Option<i32>,
    pub previous_match_data: Option<TurnBasedMatchData>,
    pub application_id: Option<String>,
    pub description: Option<String>,
    pub with_participant_id: Option<String>,
    pub kind: Option<String>,
    pub creation_details: Option<TurnBasedMatchModification>,
    pub user_match_status: Option<String>,
    pub data: Option<TurnBasedMatchData>,
    pub participants: Option<Vec<TurnBasedMatchParticipant>>,
    pub pending_participant_id: Option<String>,
    pub last_update_details: Option<TurnBasedMatchModification>,
}

This is a JSON template for a turn-based match 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

status: Option<String>

The status of the match. Possible values are:

  • "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; the match cannot be established until they are filled.
  • "MATCH_ACTIVE" - The match has started.
  • "MATCH_COMPLETE" - The match has finished.
  • "MATCH_CANCELED" - The match was canceled.
  • "MATCH_EXPIRED" - The match expired due to inactivity.
  • "MATCH_DELETED" - The match should no longer be shown on the client. Returned only for tombstones for matches when sync is called.
auto_matching_criteria: Option<TurnBasedAutoMatchingCriteria>

Criteria for auto-matching players into this match.

inviter_id: Option<String>

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

match_version: Option<i32>

The version of this match: an increasing counter, used to avoid out-of-date updates to the match.

variant: Option<i32>

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

match_id: Option<String>

Globally unique ID for a turn-based match.

rematch_id: Option<String>

The ID of a rematch of this match. Only set for completed matches that have been rematched.

results: Option<Vec<ParticipantResult>>

The results reported for this match.

match_number: Option<i32>

The number of the match in a chain of rematches. Will be set to 1 for the first match and incremented by 1 for each rematch.

previous_match_data: Option<TurnBasedMatchData>

The data / game state for the previous match; set for the first turn of rematches only.

application_id: Option<String>

The ID of the application being played.

description: Option<String>

This short description is generated by our servers based on turn state and is localized and worded relative to the player requesting the match. It is intended to be displayed when the match is shown in a list.

with_participant_id: Option<String>

The ID of another participant in the match that can be used when describing the participants the user is playing with.

kind: Option<String>

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

creation_details: Option<TurnBasedMatchModification>

Details about the match creation.

user_match_status: Option<String>

The status of the current user in the match. Derived from the match type, match status, the user's participant status, and the pending participant for the match. Possible values are:

  • "USER_INVITED" - The user has been invited to join the match and has not responded yet.
  • "USER_AWAITING_TURN" - The user is waiting for their turn.
  • "USER_TURN" - The user has an action to take in the match.
  • "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or expired.)
data: Option<TurnBasedMatchData>

The data / game state for this match.

participants: Option<Vec<TurnBasedMatchParticipant>>

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

pending_participant_id: Option<String>

The ID of the participant that is taking a turn.

last_update_details: Option<TurnBasedMatchModification>

Details about the last update to the match.

Trait Implementations

impl ResponseResult for TurnBasedMatch[src]

impl Default for TurnBasedMatch[src]

impl Clone for TurnBasedMatch[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TurnBasedMatch[src]

impl Serialize for TurnBasedMatch[src]

impl<'de> Deserialize<'de> for TurnBasedMatch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]