pub struct Style {
pub color: Option<Color>,
pub font: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underlined: Option<bool>,
pub strikethrough: Option<bool>,
pub obfuscated: Option<bool>,
pub shadow_color: Option<ShadowColor>,
pub insertion: Option<String>,
pub click_event: Option<ClickEvent>,
pub hover_event: Option<HoverEvent>,
}Expand description
Style properties for components
Fields§
§color: Option<Color>Text color
font: Option<String>Font resource location
bold: Option<bool>Bold formatting
italic: Option<bool>Italic formatting
underlined: Option<bool>Underline formatting
strikethrough: Option<bool>Strikethrough formatting
obfuscated: Option<bool>Obfuscated text
shadow_color: Option<ShadowColor>Text shadow color
insertion: Option<String>Text insertion on shift-click
click_event: Option<ClickEvent>Click action
hover_event: Option<HoverEvent>Hover action
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more