pub struct GetDocumentBuilder { /* private fields */ }Expand description
Builder for GetDocument.
Implementations§
Source§impl GetDocumentBuilder
impl GetDocumentBuilder
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 subtree (default is false).
Sourcepub fn build(&self) -> Result<GetDocument, GetDocumentBuilderError>
pub fn build(&self) -> Result<GetDocument, GetDocumentBuilderError>
Trait Implementations§
Source§impl Clone for GetDocumentBuilder
impl Clone for GetDocumentBuilder
Source§fn clone(&self) -> GetDocumentBuilder
fn clone(&self) -> GetDocumentBuilder
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 GetDocumentBuilder
impl RefUnwindSafe for GetDocumentBuilder
impl Send for GetDocumentBuilder
impl Sync for GetDocumentBuilder
impl Unpin for GetDocumentBuilder
impl UnsafeUnpin for GetDocumentBuilder
impl UnwindSafe for GetDocumentBuilder
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