[][src]Struct google_games1::TurnBasedMatchParticipant

pub struct TurnBasedMatchParticipant {
    pub auto_matched: Option<bool>,
    pub status: Option<String>,
    pub kind: Option<String>,
    pub auto_matched_player: Option<AnonymousPlayer>,
    pub player: Option<Player>,
    pub id: Option<String>,
}

This is a JSON template for a participant in a turn-based match.

This type is not used in any activity, and only used as part of another schema.

Fields

auto_matched: Option<bool>

True if this participant was auto-matched with the requesting player.

status: Option<String>

The status of the participant with respect to the match. Possible values are:

  • "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to the match, but the invitation has not been sent; the invite will be sent when it becomes their turn.
  • "PARTICIPANT_INVITED" - The participant has been invited to join the match, but has not yet responded.
  • "PARTICIPANT_JOINED" - The participant has joined the match (either after creating it or accepting an invitation.)
  • "PARTICIPANT_DECLINED" - The participant declined an invitation to join the match.
  • "PARTICIPANT_LEFT" - The participant joined the match and then left it.
  • "PARTICIPANT_FINISHED" - The participant finished playing in the match.
  • "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the allotted time.
kind: Option<String>

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

auto_matched_player: Option<AnonymousPlayer>

Information about a player that has been anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)

player: Option<Player>

Information about the player. Not populated if this player was anonymously auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)

id: Option<String>

An identifier for the participant in the scope of the match. Cannot be used to identify a player across matches or in other contexts.

Trait Implementations

impl Part for TurnBasedMatchParticipant[src]

impl Default for TurnBasedMatchParticipant[src]

impl Clone for TurnBasedMatchParticipant[src]

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

Performs copy-assignment from source. Read more

impl Debug for TurnBasedMatchParticipant[src]

impl Serialize for TurnBasedMatchParticipant[src]

impl<'de> Deserialize<'de> for TurnBasedMatchParticipant[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]