Struct google_games1::AchievementUpdateRequest
[−]
[src]
pub struct AchievementUpdateRequest { pub achievement_id: Option<String>, pub update_type: Option<String>, pub kind: Option<String>, pub set_steps_at_least_payload: Option<GamesAchievementSetStepsAtLeast>, pub increment_payload: Option<GamesAchievementIncrement>, }
This is a JSON template for a request to update an achievement.
This type is not used in any activity, and only used as part of another schema.
Fields
achievement_id: Option<String>
The achievement this update is being applied to.
update_type: Option<String>
The type of update being applied.
Possible values are:
- "REVEAL" - Achievement is revealed.
- "UNLOCK" - Achievement is unlocked.
- "INCREMENT" - Achievement is incremented.
- "SET_STEPS_AT_LEAST" - Achievement progress is set to at least the passed value.
kind: Option<String>
Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateRequest.
set_steps_at_least_payload: Option<GamesAchievementSetStepsAtLeast>
The payload if an update of type SET_STEPS_AT_LEAST was requested for the achievement.
increment_payload: Option<GamesAchievementIncrement>
The payload if an update of type INCREMENT was requested for the achievement.
Trait Implementations
impl Debug for AchievementUpdateRequest
[src]
impl Clone for AchievementUpdateRequest
[src]
fn clone(&self) -> AchievementUpdateRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for AchievementUpdateRequest
[src]
fn default() -> AchievementUpdateRequest
Returns the "default value" for a type. Read more