Struct chromiumoxide_cdp::cdp::browser_protocol::overlay::HighlightConfig[][src]

pub struct HighlightConfig {
Show 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>,
}
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).

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.