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).

Fields

avatar_image_url: Option<String>

The base URL for the image that represents the player.

banner_url_landscape: Option<String>

The url to the landscape mode player banner image.

banner_url_portrait: Option<String>

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more