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 Default for AchievementUpdateRequest
[src]
impl Default for AchievementUpdateRequest
fn default() -> AchievementUpdateRequest
[src]
fn default() -> AchievementUpdateRequest
Returns the "default value" for a type. Read more
impl Clone for AchievementUpdateRequest
[src]
impl Clone for AchievementUpdateRequest
fn clone(&self) -> AchievementUpdateRequest
[src]
fn clone(&self) -> AchievementUpdateRequest
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for AchievementUpdateRequest
[src]
impl Debug for AchievementUpdateRequest
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 AchievementUpdateRequest
[src]
impl Part for AchievementUpdateRequest
Auto Trait Implementations
impl Send for AchievementUpdateRequest
impl Send for AchievementUpdateRequest
impl Sync for AchievementUpdateRequest
impl Sync for AchievementUpdateRequest