Struct TextNodeStyle
#[non_exhaustive]pub struct TextNodeStyle {
pub color: Option<String>,
pub shadow_color: Option<u32>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underlined: Option<bool>,
pub strikethrough: Option<bool>,
pub obfuscated: Option<bool>,
pub click: Option<TextClick>,
pub hover: Option<TextNodeHover>,
pub insertion: Option<String>,
pub font: Option<String>,
pub metadata: Tag,
}Expand description
The nonrecursive form of TextStyle, with the same inheritance semantics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.color: Option<String>Named colour or #RRGGBB component colour.
shadow_color: Option<u32>Packed ARGB shadow colour; zero suppresses shadows.
bold: Option<bool>Bold decoration.
italic: Option<bool>Italic decoration.
underlined: Option<bool>Underline decoration.
strikethrough: Option<bool>Strikethrough decoration.
obfuscated: Option<bool>Obfuscated decoration.
click: Option<TextClick>Action invoked by clicking the component.
hover: Option<TextNodeHover>Information displayed on hover.
insertion: Option<String>Text inserted into the chat input on Shift-click.
font: Option<String>Font identifier.
metadata: TagUnknown style metadata remains owned data, without engine types.
Trait Implementations§
§impl Clone for TextNodeStyle
impl Clone for TextNodeStyle
§fn clone(&self) -> TextNodeStyle
fn clone(&self) -> TextNodeStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextNodeStyle
impl Debug for TextNodeStyle
§impl Default for TextNodeStyle
impl Default for TextNodeStyle
§fn default() -> TextNodeStyle
fn default() -> TextNodeStyle
Returns the “default value” for a type. Read more
impl Eq for TextNodeStyle
§impl PartialEq for TextNodeStyle
impl PartialEq for TextNodeStyle
impl StructuralPartialEq for TextNodeStyle
Auto Trait Implementations§
impl Freeze for TextNodeStyle
impl RefUnwindSafe for TextNodeStyle
impl Send for TextNodeStyle
impl Sync for TextNodeStyle
impl Unpin for TextNodeStyle
impl UnsafeUnpin for TextNodeStyle
impl UnwindSafe for TextNodeStyle
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