pub struct RequestChildNodesBuilder { /* private fields */ }Expand description
Builder for RequestChildNodes.
Implementations§
Source§impl RequestChildNodesBuilder
impl RequestChildNodesBuilder
Sourcepub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
pub fn node_id<VALUE: Into<NodeId>>(&mut self, value: VALUE) -> &mut Self
Id of the node to get children for.
Sourcepub fn depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
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.
Sourcepub fn pierce<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn pierce<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
Sourcepub fn build(&self) -> Result<RequestChildNodes, RequestChildNodesBuilderError>
pub fn build(&self) -> Result<RequestChildNodes, RequestChildNodesBuilderError>
Trait Implementations§
Source§impl Clone for RequestChildNodesBuilder
impl Clone for RequestChildNodesBuilder
Source§fn clone(&self) -> RequestChildNodesBuilder
fn clone(&self) -> RequestChildNodesBuilder
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 moreAuto Trait Implementations§
impl Freeze for RequestChildNodesBuilder
impl RefUnwindSafe for RequestChildNodesBuilder
impl Send for RequestChildNodesBuilder
impl Sync for RequestChildNodesBuilder
impl Unpin for RequestChildNodesBuilder
impl UnsafeUnpin for RequestChildNodesBuilder
impl UnwindSafe for RequestChildNodesBuilder
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