pub struct AchievementDefinition {
Show 13 fields pub achievement_type: Option<String>, pub description: Option<String>, pub experience_points: Option<String>, pub formatted_total_steps: Option<String>, pub id: Option<String>, pub initial_state: Option<String>, pub is_revealed_icon_url_default: Option<bool>, pub is_unlocked_icon_url_default: Option<bool>, pub kind: Option<String>, pub name: Option<String>, pub revealed_icon_url: Option<String>, pub total_steps: Option<i32>, pub unlocked_icon_url: Option<String>,
}
Expand description

An achievement definition object.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

achievement_type: Option<String>

The type of the achievement.

description: Option<String>

The description of the achievement.

experience_points: Option<String>

Experience points which will be earned when unlocking this achievement.

formatted_total_steps: Option<String>

The total steps for an incremental achievement as a string.

id: Option<String>

The ID of the achievement.

initial_state: Option<String>

The initial state of the achievement.

is_revealed_icon_url_default: Option<bool>

Indicates whether the revealed icon image being returned is a default image, or is provided by the game.

is_unlocked_icon_url_default: Option<bool>

Indicates whether the unlocked icon image being returned is a default image, or is game-provided.

kind: Option<String>

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

name: Option<String>

The name of the achievement.

revealed_icon_url: Option<String>

The image URL for the revealed achievement icon.

total_steps: Option<i32>

The total steps for an incremental achievement.

unlocked_icon_url: Option<String>

The image URL for the unlocked achievement icon.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more