[][src]Struct discord_game_sdk::UserAchievement

#[repr(transparent)]pub struct UserAchievement(_);

User Achievement

Struct in official docs

Implementations

impl UserAchievement[src]

pub fn user_id(&self) -> UserID[src]

The unique id of the user completing the achievement

pub fn achievement_id(&self) -> Snowflake[src]

The unique id of the achievement

pub fn percent_complete(&self) -> u8[src]

How far along the user is to completing the achievement [0..=100]

pub fn unlocked_at(&self) -> &str[src]

ISO 8601 formatted date at which the user completed the achievement

Trait Implementations

impl Clone for UserAchievement[src]

impl Debug for UserAchievement[src]

impl Eq for UserAchievement[src]

impl PartialEq<UserAchievement> for UserAchievement[src]

impl StructuralEq for UserAchievement[src]

impl StructuralPartialEq for UserAchievement[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> 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.