Struct chromiumoxide::cdp::browser_protocol::overlay::HighlightNodeParams
source · pub struct HighlightNodeParams {
pub highlight_config: HighlightConfig,
pub node_id: Option<NodeId>,
pub backend_node_id: Option<BackendNodeId>,
pub object_id: Option<RemoteObjectId>,
pub selector: Option<String>,
}
Expand description
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. highlightNode
Fields§
§highlight_config: HighlightConfig
A descriptor for the highlight appearance.
node_id: Option<NodeId>
Identifier of the node to highlight.
backend_node_id: Option<BackendNodeId>
Identifier of the backend node to highlight.
object_id: Option<RemoteObjectId>
JavaScript object id of the node to be highlighted.
selector: Option<String>
Selectors to highlight relevant nodes.
Implementations§
source§impl HighlightNodeParams
impl HighlightNodeParams
pub fn new(highlight_config: impl Into<HighlightConfig>) -> HighlightNodeParams
source§impl HighlightNodeParams
impl HighlightNodeParams
pub fn builder() -> HighlightNodeParamsBuilder
source§impl HighlightNodeParams
impl HighlightNodeParams
pub const IDENTIFIER: &'static str = "Overlay.highlightNode"
Trait Implementations§
source§impl Clone for HighlightNodeParams
impl Clone for HighlightNodeParams
source§fn clone(&self) -> HighlightNodeParams
fn clone(&self) -> HighlightNodeParams
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 HighlightNodeParams
impl Command for HighlightNodeParams
§type Response = HighlightNodeReturns
type Response = HighlightNodeReturns
The type of the response this request triggers on the chromium server
source§impl Debug for HighlightNodeParams
impl Debug for HighlightNodeParams
source§impl<'de> Deserialize<'de> for HighlightNodeParams
impl<'de> Deserialize<'de> for HighlightNodeParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<HighlightNodeParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<HighlightNodeParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Method for HighlightNodeParams
impl Method for HighlightNodeParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
source§impl MethodType for HighlightNodeParams
impl MethodType for HighlightNodeParams
source§impl PartialEq for HighlightNodeParams
impl PartialEq for HighlightNodeParams
source§fn eq(&self, other: &HighlightNodeParams) -> bool
fn eq(&self, other: &HighlightNodeParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HighlightNodeParams
impl Serialize for HighlightNodeParams
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
impl StructuralPartialEq for HighlightNodeParams
Auto Trait Implementations§
impl RefUnwindSafe for HighlightNodeParams
impl Send for HighlightNodeParams
impl Sync for HighlightNodeParams
impl Unpin for HighlightNodeParams
impl UnwindSafe for HighlightNodeParams
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