Struct steamworks::UserAchievementStored
source · pub struct UserAchievementStored {
pub game_id: GameId,
pub achievement_name: String,
pub current_progress: u32,
pub max_progress: u32,
}
Expand description
Result of a request to store the achievements on the server, or an “indicate progress” call.
If both current_progress
and max_progress
are zero, that means the achievement has been
fully unlocked.
§Example
let callback_handle = client.register_callback(|val: UserAchievementStored| {
// ...
});
Fields§
§game_id: GameId
§achievement_name: String
§current_progress: u32
Current progress towards the achievement.
max_progress: u32
The total amount of progress required to unlock.
Trait Implementations§
source§impl Callback for UserAchievementStored
impl Callback for UserAchievementStored
source§impl Clone for UserAchievementStored
impl Clone for UserAchievementStored
source§fn clone(&self) -> UserAchievementStored
fn clone(&self) -> UserAchievementStored
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for UserAchievementStored
impl Send for UserAchievementStored
impl Sync for UserAchievementStored
impl Unpin for UserAchievementStored
impl UnwindSafe for UserAchievementStored
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