pub struct GlobalAttrs {Show 34 fields
pub id: Option<String>,
pub class: Option<String>,
pub style: Option<String>,
pub tooltip: Option<String>,
pub lang: Option<String>,
pub dir: Option<String>,
pub hidden: Option<String>,
pub tabindex: Option<String>,
pub accesskey: Option<String>,
pub draggable: Option<String>,
pub contenteditable: Option<String>,
pub spellcheck: Option<String>,
pub translate: Option<String>,
pub role: Option<String>,
pub onclick: Option<String>,
pub ondblclick: Option<String>,
pub onmousedown: Option<String>,
pub onmouseover: Option<String>,
pub onmouseout: Option<String>,
pub onmouseup: Option<String>,
pub onmouseenter: Option<String>,
pub onmouseleave: Option<String>,
pub onkeydown: Option<String>,
pub onkeyup: Option<String>,
pub onfocus: Option<String>,
pub onblur: Option<String>,
pub onchange: Option<String>,
pub oninput: Option<String>,
pub onsubmit: Option<String>,
pub onload: Option<String>,
pub onerror: Option<String>,
pub onscroll: Option<String>,
pub oncontextmenu: Option<String>,
pub extra: HashMap<String, String>,
}Expand description
Global attributes that can appear on any HTML element.
This includes standard HTML global attributes and common event handlers. Unknown attributes (like data-, aria-, and less common event handlers) are currently ignored during parsing.
Fields§
§id: Option<String>Unique identifier for the element.
class: Option<String>CSS class names.
style: Option<String>Inline CSS styles.
tooltip: Option<String>Advisory title/tooltip.
Note: Named tooltip in Rust to avoid collision with <title> child element in Head.
Serializes as the title HTML attribute.
lang: Option<String>Language of the element’s content.
dir: Option<String>Text directionality (ltr, rtl, auto).
Whether the element is hidden.
tabindex: Option<String>Tab order of the element.
accesskey: Option<String>Access key for the element.
draggable: Option<String>Whether the element is draggable.
contenteditable: Option<String>Whether the element is editable.
spellcheck: Option<String>Whether spellchecking is enabled.
translate: Option<String>Whether the element should be translated.
role: Option<String>ARIA role.
onclick: Option<String>Script to run on mouse click.
ondblclick: Option<String>Script to run on mouse double-click.
onmousedown: Option<String>Script to run when mouse button is pressed.
onmouseover: Option<String>Script to run when mouse pointer moves over element.
onmouseout: Option<String>Script to run when mouse pointer moves out of element.
onmouseup: Option<String>Script to run when mouse button is released.
onmouseenter: Option<String>Script to run when mouse enters element.
onmouseleave: Option<String>Script to run when mouse leaves element.
onkeydown: Option<String>Script to run when key is pressed down.
onkeyup: Option<String>Script to run when key is released.
onfocus: Option<String>Script to run when element receives focus.
onblur: Option<String>Script to run when element loses focus.
onchange: Option<String>Script to run when value changes.
oninput: Option<String>Script to run on input.
onsubmit: Option<String>Script to run when form is submitted.
onload: Option<String>Script to run when resource is loaded.
onerror: Option<String>Script to run when error occurs.
onscroll: Option<String>Script to run when element is scrolled.
Script to run on context menu (right-click).
extra: HashMap<String, String>Extra attributes not explicitly modeled. Includes data-* attributes, aria-* attributes, and less common event handlers. Keys are the full attribute names as they appear in HTML.
Trait Implementations§
Source§impl Clone for GlobalAttrs
impl Clone for GlobalAttrs
Source§fn clone(&self) -> GlobalAttrs
fn clone(&self) -> GlobalAttrs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalAttrs
impl Debug for GlobalAttrs
Source§impl Default for GlobalAttrs
impl Default for GlobalAttrs
Source§fn default() -> GlobalAttrs
fn default() -> GlobalAttrs
Source§impl<'ʄ> Facet<'ʄ> for GlobalAttrs
impl<'ʄ> Facet<'ʄ> for GlobalAttrs
Source§impl PartialEq for GlobalAttrs
impl PartialEq for GlobalAttrs
impl StructuralPartialEq for GlobalAttrs
Auto Trait Implementations§
impl Freeze for GlobalAttrs
impl RefUnwindSafe for GlobalAttrs
impl Send for GlobalAttrs
impl Sync for GlobalAttrs
impl Unpin for GlobalAttrs
impl UnwindSafe for GlobalAttrs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more