pub struct Style<V> {
pub color: Option<TextColor>,
pub font: Option<ResourceLocation>,
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<V>>,
pub hover_event: Option<HoverEvent<V>>,
}Fields§
§color: Option<TextColor>§font: Option<ResourceLocation>§bold: Option<bool>§italic: Option<bool>§underlined: Option<bool>§strikethrough: Option<bool>§obfuscated: Option<bool>§shadow_color: Option<ShadowColor>§insertion: Option<String>§click_event: Option<ClickEvent<V>>§hover_event: Option<HoverEvent<V>>Trait Implementations§
impl<V: PartialEq> StructuralPartialEq for Style<V>
Auto Trait Implementations§
impl<V> Freeze for Style<V>where
V: Freeze,
impl<V> RefUnwindSafe for Style<V>where
V: RefUnwindSafe,
impl<V> Send for Style<V>where
V: Send,
impl<V> Sync for Style<V>where
V: Sync,
impl<V> Unpin for Style<V>where
V: Unpin,
impl<V> UnsafeUnpin for Style<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Style<V>where
V: UnwindSafe + RefUnwindSafe,
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