Struct google_games1::api::Player
source · [−]pub struct Player {
pub avatar_image_url: Option<String>,
pub banner_url_landscape: Option<String>,
pub banner_url_portrait: Option<String>,
pub display_name: Option<String>,
pub experience_info: Option<PlayerExperienceInfo>,
pub friend_status: Option<String>,
pub kind: Option<String>,
pub name: Option<PlayerName>,
pub original_player_id: Option<String>,
pub player_id: Option<String>,
pub profile_settings: Option<ProfileSettings>,
pub title: Option<String>,
}
Expand description
A Player resource.
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).
- get players (response)
- list players (none)
Fields
avatar_image_url: Option<String>
The base URL for the image that represents the player.
The url to the landscape mode player banner image.
The url to the portrait mode player banner image.
display_name: Option<String>
The name to display for the player.
experience_info: Option<PlayerExperienceInfo>
An object to represent Play Game experience information for the player.
friend_status: Option<String>
The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game.
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#player
name: Option<PlayerName>
A representation of the individual components of the name.
original_player_id: Option<String>
The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs.
player_id: Option<String>
The ID of the player.
profile_settings: Option<ProfileSettings>
The player’s profile settings. Controls whether or not the player’s profile is visible to other players.
title: Option<String>
The player’s title rewarded for their game activities.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Player
impl<'de> Deserialize<'de> for Player
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Resource for Player
impl ResponseResult for Player
Auto Trait Implementations
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more