pub struct GetNodesForSubtreeByStyleParams {
pub node_id: NodeId,
pub computed_styles: Vec<CssComputedStyleProperty>,
pub pierce: Option<bool>,
}Expand description
Finds nodes with a given computed style in a subtree. getNodesForSubtreeByStyle
Fields§
§node_id: NodeIdNode ID pointing to the root of a subtree.
computed_styles: Vec<CssComputedStyleProperty>The style to filter nodes by (includes nodes if any of properties matches).
pierce: Option<bool>Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
Implementations§
Source§impl GetNodesForSubtreeByStyleParams
impl GetNodesForSubtreeByStyleParams
pub fn builder() -> GetNodesForSubtreeByStyleParamsBuilder
Source§impl GetNodesForSubtreeByStyleParams
impl GetNodesForSubtreeByStyleParams
pub const IDENTIFIER: &'static str = "DOM.getNodesForSubtreeByStyle"
Trait Implementations§
Source§impl Clone for GetNodesForSubtreeByStyleParams
impl Clone for GetNodesForSubtreeByStyleParams
Source§fn clone(&self) -> GetNodesForSubtreeByStyleParams
fn clone(&self) -> GetNodesForSubtreeByStyleParams
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<'de> Deserialize<'de> for GetNodesForSubtreeByStyleParams
impl<'de> Deserialize<'de> for GetNodesForSubtreeByStyleParams
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 Method for GetNodesForSubtreeByStyleParams
impl Method for GetNodesForSubtreeByStyleParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
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 PartialEq for GetNodesForSubtreeByStyleParams
impl PartialEq for GetNodesForSubtreeByStyleParams
Source§fn eq(&self, other: &GetNodesForSubtreeByStyleParams) -> bool
fn eq(&self, other: &GetNodesForSubtreeByStyleParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetNodesForSubtreeByStyleParams
Auto Trait Implementations§
impl Freeze for GetNodesForSubtreeByStyleParams
impl RefUnwindSafe for GetNodesForSubtreeByStyleParams
impl Send for GetNodesForSubtreeByStyleParams
impl Sync for GetNodesForSubtreeByStyleParams
impl Unpin for GetNodesForSubtreeByStyleParams
impl UnwindSafe for GetNodesForSubtreeByStyleParams
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