[][src]Struct google_games1::AchievementUpdateRequest

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 Clone for AchievementUpdateRequest[src]

impl Debug for AchievementUpdateRequest[src]

impl Default for AchievementUpdateRequest[src]

impl<'de> Deserialize<'de> for AchievementUpdateRequest[src]

impl Part for AchievementUpdateRequest[src]

impl Serialize for AchievementUpdateRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any