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

pub struct Formatting {
    pub color: Option<Colour>,
    pub font: Option<String>,
    pub bold: Option<bool>,
    pub italic: Option<bool>,
    pub underlined: Option<bool>,
    pub strikethrough: Option<bool>,
    pub obfuscated: Option<bool>,
}
Expand description

Formatting properties for a TextComponent, can be inherited.

Fields

color: Option<Colour>

The color to render the content in. See also Colour.

font: Option<String>

The resource location of the font for this component in the resource pack within assets/<namespace>/font. Defaults to "minecraft:default".

bold: Option<bool>

Whether to render the content in bold.

italic: Option<bool>

Whether to render the content in italics. Note that text that is italicized by default, such as custom item names, can be unitalicized by setting this to false.

underlined: Option<bool>

Whether to underline the content.

strikethrough: Option<bool>

Whether to strikethrough the content.

obfuscated: Option<bool>

Whether to render the content obfuscated.

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.