Enum minecraft_json::minecraft::text::Colour [−][src]
pub enum Colour { Named(ColourName), Hex(HexColour), }
Expand description
Text colours, either pre-defined or custom hexadecimal colours.
assert_equiv!(r#""dark_purple""#, Colour::Named(ColourName::DarkPurple)); assert_equiv!(r##""#66CCFF""##, Colour::Hex(HexColour { red: 0x66, green: 0xCC, blue: 0xFF }));
Variants
Named(ColourName)
Hex(HexColour)
Trait Implementations
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