pub struct AchievementUpdateResponse {
pub achievement_id: Option<String>,
pub current_state: Option<String>,
pub current_steps: Option<i32>,
pub kind: Option<String>,
pub newly_unlocked: Option<bool>,
pub update_occurred: Option<bool>,
}Expand description
An updated 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 was applied to.
current_state: Option<String>The current state of the achievement.
current_steps: Option<i32>The current steps recorded for this achievement if it is incremental.
kind: Option<String>Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateResponse.
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).
update_occurred: Option<bool>Whether the requested updates actually affected the achievement.
Trait Implementations§
Source§impl Clone for AchievementUpdateResponse
impl Clone for AchievementUpdateResponse
Source§fn clone(&self) -> AchievementUpdateResponse
fn clone(&self) -> AchievementUpdateResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AchievementUpdateResponse
impl Debug for AchievementUpdateResponse
Source§impl Default for AchievementUpdateResponse
impl Default for AchievementUpdateResponse
Source§fn default() -> AchievementUpdateResponse
fn default() -> AchievementUpdateResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AchievementUpdateResponse
impl<'de> Deserialize<'de> for AchievementUpdateResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for AchievementUpdateResponse
Auto Trait Implementations§
impl Freeze for AchievementUpdateResponse
impl RefUnwindSafe for AchievementUpdateResponse
impl Send for AchievementUpdateResponse
impl Sync for AchievementUpdateResponse
impl Unpin for AchievementUpdateResponse
impl UnwindSafe for AchievementUpdateResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more