Struct google_games1::QuestCriterion [] [src]

pub struct QuestCriterion {
    pub event_id: Option<String>,
    pub completion_contribution: Option<QuestContribution>,
    pub initial_player_progress: Option<QuestContribution>,
    pub kind: Option<String>,
    pub current_contribution: Option<QuestContribution>,
}

This is a JSON template for a Quest Criterion resource.

This type is not used in any activity, and only used as part of another schema.

Fields

The ID of the event the criterion corresponds to.

The total number of times the associated event must be incremented for the player to complete this quest.

The value of the event associated with this quest at the time that the quest was accepted. This value may change if event increments that took place before the start of quest are uploaded after the quest starts. There will be no initialPlayerProgress until the player has accepted the quest.

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

The number of increments the player has made toward the completion count event increments required to complete the quest. This value will not exceed the completion contribution. There will be no currentContribution until the player has accepted the quest.

Trait Implementations

impl Debug for QuestCriterion
[src]

Formats the value using the given formatter.

impl Clone for QuestCriterion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for QuestCriterion
[src]

Returns the "default value" for a type. Read more

impl Part for QuestCriterion
[src]