pub struct HighlightRect {
pub method: HighlightRectMethod,
pub params: HighlightRectParams,
}Expand description
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128). highlightRect
Fields§
§method: HighlightRectMethod§params: HighlightRectParamsImplementations§
Source§impl HighlightRect
impl HighlightRect
pub fn builder() -> HighlightRectBuilder
Source§impl HighlightRect
impl HighlightRect
pub const IDENTIFIER: &'static str = "Overlay.highlightRect"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for HighlightRect
impl Clone for HighlightRect
Source§fn clone(&self) -> HighlightRect
fn clone(&self) -> HighlightRect
Returns a duplicate 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 CommandResult for HighlightRect
impl CommandResult for HighlightRect
type Result = HighlightRectResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for HighlightRect
impl Debug for HighlightRect
Source§impl<'de> Deserialize<'de> for HighlightRect
impl<'de> Deserialize<'de> for HighlightRect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HighlightRect> for BrowserProtocolCommands
impl From<HighlightRect> for BrowserProtocolCommands
Source§fn from(v: HighlightRect) -> Self
fn from(v: HighlightRect) -> Self
Converts to this type from the input type.
Source§impl From<HighlightRect> for Command
impl From<HighlightRect> for Command
Source§fn from(v: HighlightRect) -> Self
fn from(v: HighlightRect) -> Self
Converts to this type from the input type.
Source§impl From<HighlightRect> for OverlayCommands
impl From<HighlightRect> for OverlayCommands
Source§fn from(v: HighlightRect) -> Self
fn from(v: HighlightRect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HighlightRect
impl PartialEq for HighlightRect
Source§impl Serialize for HighlightRect
impl Serialize for HighlightRect
Source§impl TryFrom<BrowserProtocolCommands> for HighlightRect
impl TryFrom<BrowserProtocolCommands> for HighlightRect
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <HighlightRect as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <HighlightRect as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for HighlightRect
impl TryFrom<Command> for HighlightRect
Source§impl TryFrom<OverlayCommands> for HighlightRect
impl TryFrom<OverlayCommands> for HighlightRect
Source§type Error = OverlayCommands
type Error = OverlayCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: OverlayCommands,
) -> Result<Self, <HighlightRect as TryFrom<OverlayCommands>>::Error>
fn try_from( e: OverlayCommands, ) -> Result<Self, <HighlightRect as TryFrom<OverlayCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for HighlightRect
Auto Trait Implementations§
impl Freeze for HighlightRect
impl RefUnwindSafe for HighlightRect
impl Send for HighlightRect
impl Sync for HighlightRect
impl Unpin for HighlightRect
impl UnsafeUnpin for HighlightRect
impl UnwindSafe for HighlightRect
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
Mutably borrows from an owned value. Read more