Struct google_games1::AchievementUpdateResponse [−][src]
pub struct AchievementUpdateResponse { pub current_steps: Option<i32>, pub newly_unlocked: Option<bool>, pub kind: Option<String>, pub achievement_id: Option<String>, pub update_occurred: Option<bool>, pub current_state: Option<String>, }
This is a JSON template for an achievement update response.
This type is not used in any activity, and only used as part of another schema.
Fields
current_steps: Option<i32>
The current steps recorded for this achievement if it is incremental.
newly_unlocked: Option<bool>
Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateResponse.
achievement_id: Option<String>
The achievement this update is was applied to.
update_occurred: Option<bool>
Whether the requested updates actually affected the achievement.
current_state: Option<String>
The current state of the achievement. Possible values are:
- "HIDDEN" - Achievement is hidden.
- "REVEALED" - Achievement is revealed.
- "UNLOCKED" - Achievement is unlocked.
Trait Implementations
impl Default for AchievementUpdateResponse
[src]
impl Default for AchievementUpdateResponse
fn default() -> AchievementUpdateResponse
[src]
fn default() -> AchievementUpdateResponse
Returns the "default value" for a type. Read more
impl Clone for AchievementUpdateResponse
[src]
impl Clone for AchievementUpdateResponse
fn clone(&self) -> AchievementUpdateResponse
[src]
fn clone(&self) -> AchievementUpdateResponse
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 AchievementUpdateResponse
[src]
impl Debug for AchievementUpdateResponse
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 Part for AchievementUpdateResponse
[src]
impl Part for AchievementUpdateResponse
Auto Trait Implementations
impl Send for AchievementUpdateResponse
impl Send for AchievementUpdateResponse
impl Sync for AchievementUpdateResponse
impl Sync for AchievementUpdateResponse