Struct chromiumoxide::cdp::browser_protocol::overlay::HighlightRectParams
source · pub struct HighlightRectParams {
pub x: i64,
pub y: i64,
pub width: i64,
pub height: i64,
pub color: Option<Rgba>,
pub outline_color: Option<Rgba>,
}Expand description
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. highlightRect
Fields§
§x: i64X coordinate
y: i64Y coordinate
width: i64Rectangle width
height: i64Rectangle height
color: Option<Rgba>The highlight fill color (default: transparent).
outline_color: Option<Rgba>The highlight outline color (default: transparent).
Implementations§
source§impl HighlightRectParams
impl HighlightRectParams
pub fn builder() -> HighlightRectParamsBuilder
source§impl HighlightRectParams
impl HighlightRectParams
pub const IDENTIFIER: &'static str = "Overlay.highlightRect"
Trait Implementations§
source§impl Clone for HighlightRectParams
impl Clone for HighlightRectParams
source§fn clone(&self) -> HighlightRectParams
fn clone(&self) -> HighlightRectParams
Returns a copy 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 Command for HighlightRectParams
impl Command for HighlightRectParams
§type Response = HighlightRectReturns
type Response = HighlightRectReturns
The type of the response this request triggers on the chromium server
source§impl Debug for HighlightRectParams
impl Debug for HighlightRectParams
source§impl<'de> Deserialize<'de> for HighlightRectParams
impl<'de> Deserialize<'de> for HighlightRectParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<HighlightRectParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<HighlightRectParams, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Method for HighlightRectParams
impl Method for HighlightRectParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNodesource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMsource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodesource§impl MethodType for HighlightRectParams
impl MethodType for HighlightRectParams
source§impl PartialEq<HighlightRectParams> for HighlightRectParams
impl PartialEq<HighlightRectParams> for HighlightRectParams
source§fn eq(&self, other: &HighlightRectParams) -> bool
fn eq(&self, other: &HighlightRectParams) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HighlightRectParams
impl Serialize for HighlightRectParams
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more