pub struct RequestChildNodes {
pub node_id: NodeId,
pub depth: Option<JsUInt>,
pub pierce: Option<bool>,
}Expand description
Requests that children of the node with given id are returned to the caller in form of
setChildNodes events where not only immediate children are retrieved, but all children down to
the specified depth.
Fields§
§node_id: NodeIdId of the node to get children for.
depth: Option<JsUInt>The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
pierce: Option<bool>Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
Trait Implementations§
Source§impl Clone for RequestChildNodes
impl Clone for RequestChildNodes
Source§fn clone(&self) -> RequestChildNodes
fn clone(&self) -> RequestChildNodes
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 Debug for RequestChildNodes
impl Debug for RequestChildNodes
Source§impl<'de> Deserialize<'de> for RequestChildNodes
impl<'de> Deserialize<'de> for RequestChildNodes
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 RequestChildNodes
impl Method for RequestChildNodes
const NAME: &'static str = "DOM.requestChildNodes"
type ReturnObject = RequestChildNodesReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for RequestChildNodes
impl PartialEq for RequestChildNodes
Source§impl Serialize for RequestChildNodes
impl Serialize for RequestChildNodes
impl StructuralPartialEq for RequestChildNodes
Auto Trait Implementations§
impl Freeze for RequestChildNodes
impl RefUnwindSafe for RequestChildNodes
impl Send for RequestChildNodes
impl Sync for RequestChildNodes
impl Unpin for RequestChildNodes
impl UnsafeUnpin for RequestChildNodes
impl UnwindSafe for RequestChildNodes
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