Struct cdp::overlay::HighlightRectCommand
[−]
[src]
pub struct HighlightRectCommand { pub x: i32, pub y: i32, pub width: i32, pub height: i32, pub color: Option<Rgba>, pub outline_color: Option<Rgba>, }
[Experimental] Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
Command Overlay.highlightRect
Domain Module: cdp::overlay
Command Struct: cdp::overlay::HighlightRectCommand
Response Struct: cdp::overlay::HighlightRectResponse
Fields
x: i32
X coordinate
y: i32
Y coordinate
width: i32
Rectangle width
height: i32
Rectangle height
color: Option<Rgba>
The highlight fill color (default: transparent).
outline_color: Option<Rgba>
The highlight outline color (default: transparent).
Trait Implementations
impl Clone for HighlightRectCommand
[src]
fn clone(&self) -> HighlightRectCommand
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for HighlightRectCommand
[src]
impl PartialEq for HighlightRectCommand
[src]
fn eq(&self, __arg_0: &HighlightRectCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HighlightRectCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for HighlightRectCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Overlay.highlightRect"
impl SerializeCdpCommand for HighlightRectCommand
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for HighlightRectCommand
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,