Struct minecraft_json::minecraft::text::TextComponentTags[][src]

pub struct TextComponentTags {
    pub extra: Vec<TextComponent>,
    pub formatting: Formatting,
    pub interactivity: Interactivity,
}
Expand description

Common properties for TextComponent.

Due to the extra tag, the above format may be recursively nested to produce complex and functional text strings. However, a raw JSON text doesn’t have to be complicated at all: virtually all properties are optional and may be left out.

Fields

extra: Vec<TextComponent>

A list of additional raw JSON text components to be displayed after this one.

Each element is a child text component. Child text components inherit all formatting and interactivity from the parent component, unless they explicitly override them.

formatting: Formatting

Formatting properties.

interactivity: Interactivity

Interactivity properties.

Trait Implementations

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

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.