Struct google_games1::PlayerScoreResponse [−][src]
pub struct PlayerScoreResponse { pub kind: Option<String>, pub beaten_score_time_spans: Option<Vec<String>>, pub score_tag: Option<String>, pub unbeaten_scores: Option<Vec<PlayerScore>>, pub leaderboard_id: Option<String>, pub formatted_score: Option<String>, }
This is a JSON template for a list of leaderboard entry resources.
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).
- submit scores (response)
Fields
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse.
beaten_score_time_spans: Option<Vec<String>>
The time spans where the submitted score is better than the existing score for that time span. Possible values are:
- "ALL_TIME" - The score is an all-time score.
- "WEEKLY" - The score is a weekly score.
- "DAILY" - The score is a daily score.
score_tag: Option<String>
Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
unbeaten_scores: Option<Vec<PlayerScore>>
The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans.
leaderboard_id: Option<String>
The leaderboard ID that this score was submitted to.
formatted_score: Option<String>
The formatted value of the submitted score.
Trait Implementations
impl Default for PlayerScoreResponse
[src]
impl Default for PlayerScoreResponse
fn default() -> PlayerScoreResponse
[src]
fn default() -> PlayerScoreResponse
Returns the "default value" for a type. Read more
impl Clone for PlayerScoreResponse
[src]
impl Clone for PlayerScoreResponse
fn clone(&self) -> PlayerScoreResponse
[src]
fn clone(&self) -> PlayerScoreResponse
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PlayerScoreResponse
[src]
impl Debug for PlayerScoreResponse
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ResponseResult for PlayerScoreResponse
[src]
impl ResponseResult for PlayerScoreResponse
Auto Trait Implementations
impl Send for PlayerScoreResponse
impl Send for PlayerScoreResponse
impl Sync for PlayerScoreResponse
impl Sync for PlayerScoreResponse