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

The achievement this update is being applied to.

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.

Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateRequest.

The payload if an update of type SET_STEPS_AT_LEAST was requested for the achievement.

The payload if an update of type INCREMENT was requested for the achievement.

Trait Implementations

impl Default for AchievementUpdateRequest
[src]

Returns the "default value" for a type. Read more

impl Clone for AchievementUpdateRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AchievementUpdateRequest
[src]

Formats the value using the given formatter. Read more

impl Part for AchievementUpdateRequest
[src]

Auto Trait Implementations