Struct chromiumoxide::cdp::browser_protocol::overlay::HighlightConfig
source · pub struct HighlightConfig {Show 19 fields
pub show_info: Option<bool>,
pub show_styles: Option<bool>,
pub show_rulers: Option<bool>,
pub show_accessibility_info: Option<bool>,
pub show_extension_lines: Option<bool>,
pub content_color: Option<Rgba>,
pub padding_color: Option<Rgba>,
pub border_color: Option<Rgba>,
pub margin_color: Option<Rgba>,
pub event_target_color: Option<Rgba>,
pub shape_color: Option<Rgba>,
pub shape_margin_color: Option<Rgba>,
pub css_grid_color: Option<Rgba>,
pub color_format: Option<ColorFormat>,
pub grid_highlight_config: Option<GridHighlightConfig>,
pub flex_container_highlight_config: Option<FlexContainerHighlightConfig>,
pub flex_item_highlight_config: Option<FlexItemHighlightConfig>,
pub contrast_algorithm: Option<ContrastAlgorithm>,
pub container_query_container_highlight_config: Option<ContainerQueryContainerHighlightConfig>,
}
Expand description
Configuration data for the highlighting of page elements. HighlightConfig
Fields§
§show_info: Option<bool>
Whether the node info tooltip should be shown (default: false).
show_styles: Option<bool>
Whether the node styles in the tooltip (default: false).
show_rulers: Option<bool>
Whether the rulers should be shown (default: false).
show_accessibility_info: Option<bool>
Whether the a11y info should be shown (default: true).
show_extension_lines: Option<bool>
Whether the extension lines from node to the rulers should be shown (default: false).
content_color: Option<Rgba>
The content box highlight fill color (default: transparent).
padding_color: Option<Rgba>
The padding highlight fill color (default: transparent).
border_color: Option<Rgba>
The border highlight fill color (default: transparent).
margin_color: Option<Rgba>
The margin highlight fill color (default: transparent).
event_target_color: Option<Rgba>
The event target element highlight fill color (default: transparent).
shape_color: Option<Rgba>
The shape outside fill color (default: transparent).
shape_margin_color: Option<Rgba>
The shape margin fill color (default: transparent).
css_grid_color: Option<Rgba>
The grid layout color (default: transparent).
color_format: Option<ColorFormat>
The color format used to format color styles (default: hex).
grid_highlight_config: Option<GridHighlightConfig>
The grid layout highlight configuration (default: all transparent).
flex_container_highlight_config: Option<FlexContainerHighlightConfig>
The flex container highlight configuration (default: all transparent).
flex_item_highlight_config: Option<FlexItemHighlightConfig>
The flex item highlight configuration (default: all transparent).
contrast_algorithm: Option<ContrastAlgorithm>
The contrast algorithm to use for the contrast ratio (default: aa).
container_query_container_highlight_config: Option<ContainerQueryContainerHighlightConfig>
The container query container highlight configuration (default: all transparent).
Implementations§
source§impl HighlightConfig
impl HighlightConfig
pub fn builder() -> HighlightConfigBuilder
source§impl HighlightConfig
impl HighlightConfig
pub const IDENTIFIER: &'static str = "Overlay.HighlightConfig"
Trait Implementations§
source§impl Clone for HighlightConfig
impl Clone for HighlightConfig
source§fn clone(&self) -> HighlightConfig
fn clone(&self) -> HighlightConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HighlightConfig
impl Debug for HighlightConfig
source§impl Default for HighlightConfig
impl Default for HighlightConfig
source§fn default() -> HighlightConfig
fn default() -> HighlightConfig
source§impl<'de> Deserialize<'de> for HighlightConfig
impl<'de> Deserialize<'de> for HighlightConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<HighlightConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<HighlightConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for HighlightConfig
impl PartialEq for HighlightConfig
source§fn eq(&self, other: &HighlightConfig) -> bool
fn eq(&self, other: &HighlightConfig) -> bool
self
and other
values to be equal, and is used
by ==
.