[−][src]Struct google_games1::RoomParticipant
This is a JSON template for a participant in a room.
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 room. Possible values are:
- "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- "PARTICIPANT_LEFT" - The participant joined the room and then left it.
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
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.)
client_address: Option<RoomClientAddress>
Client address for the participant.
capabilities: Option<Vec<String>>
The capabilities which can be used when communicating with this participant.
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.)
leave_reason: Option<String>
The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT. Possible values are:
- "PLAYER_LEFT" - The player explicitly chose to leave the room.
- "GAME_LEFT" - The game chose to remove the player from the room.
- "ABANDONED" - The player switched to another application and abandoned the room.
- "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- "TIMEOUT" - The client timed out while waiting for players to join and connect.
- "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
connected: Option<bool>
True if this participant is in the fully connected set of peers in the room.
id: Option<String>
An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
Trait Implementations
impl Part for RoomParticipant
[src]
impl Default for RoomParticipant
[src]
fn default() -> RoomParticipant
[src]
impl Clone for RoomParticipant
[src]
fn clone(&self) -> RoomParticipant
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for RoomParticipant
[src]
impl Serialize for RoomParticipant
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for RoomParticipant
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for RoomParticipant
impl Unpin for RoomParticipant
impl Sync for RoomParticipant
impl UnwindSafe for RoomParticipant
impl RefUnwindSafe for RoomParticipant
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,