Struct minecraft_json::minecraft::data::advancement::Display[][src]

pub struct Display {
    pub icon: Option<Icon>,
    pub title: TextComponent,
    pub frame: Frame,
    pub background: Option<String>,
    pub description: TextComponent,
    pub show_toast: bool,
    pub announce_to_chat: bool,
    pub hidden: bool,
}
Expand description

Display data for an Advancement.

Fields

icon: Option<Icon>

The data for the icon.

title: TextComponent

The title for this advancement.

frame: Frame

The optional type of frame for the icon.

background: Option<String>

The optional directory for the background to use in this advancement tab (used only for the root advancement).

description: TextComponent

The description of the advancement.

show_toast: bool

Whether or not to show the toast pop up after completing this advancement. Defaults to true.

announce_to_chat: bool

Whether or not to announce in the chat when this advancement has been completed. Defaults to true.

hidden: bool

Whether or not to hide this advancement and all its children from the advancement screen until this advancement have been completed. Has no effect on root advancements themselves, but still affects all their children. Defaults to false.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.