pub struct HighlightStyle {
pub color: Option<String>,
pub background_color: Option<String>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
}Expand description
Highlight style configuration for visual text formatting.
This struct defines the visual appearance of highlighted text segments, including colors, font weight, and text decorations.
Fields§
§color: Option<String>Foreground text color in hex format (e.g., “#FF0000” for red)
background_color: Option<String>Background color in hex format (e.g., “#FFFF00” for yellow)
bold: boolWhether text should be displayed in bold
italic: boolWhether text should be displayed in italic
underline: boolWhether text should be underlined
Trait Implementations§
Source§impl Clone for HighlightStyle
impl Clone for HighlightStyle
Source§fn clone(&self) -> HighlightStyle
fn clone(&self) -> HighlightStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighlightStyle
impl Debug for HighlightStyle
Source§impl Default for HighlightStyle
impl Default for HighlightStyle
Source§impl<'de> Deserialize<'de> for HighlightStyle
impl<'de> Deserialize<'de> for HighlightStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HighlightStyle
impl PartialEq for HighlightStyle
Source§impl Serialize for HighlightStyle
impl Serialize for HighlightStyle
impl StructuralPartialEq for HighlightStyle
Auto Trait Implementations§
impl Freeze for HighlightStyle
impl RefUnwindSafe for HighlightStyle
impl Send for HighlightStyle
impl Sync for HighlightStyle
impl Unpin for HighlightStyle
impl UnwindSafe for HighlightStyle
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