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: FormattingFormatting properties.
interactivity: InteractivityInteractivity properties.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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 !=.