pub struct GetFlattenedDocumentBuilder { /* private fields */ }Expand description
Builder for GetFlattenedDocument.
Implementations§
Source§impl GetFlattenedDocumentBuilder
impl GetFlattenedDocumentBuilder
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<GetFlattenedDocument, GetFlattenedDocumentBuilderError>
pub fn build( &self, ) -> Result<GetFlattenedDocument, GetFlattenedDocumentBuilderError>
Trait Implementations§
Source§impl Clone for GetFlattenedDocumentBuilder
impl Clone for GetFlattenedDocumentBuilder
Source§fn clone(&self) -> GetFlattenedDocumentBuilder
fn clone(&self) -> GetFlattenedDocumentBuilder
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 GetFlattenedDocumentBuilder
impl RefUnwindSafe for GetFlattenedDocumentBuilder
impl Send for GetFlattenedDocumentBuilder
impl Sync for GetFlattenedDocumentBuilder
impl Unpin for GetFlattenedDocumentBuilder
impl UnsafeUnpin for GetFlattenedDocumentBuilder
impl UnwindSafe for GetFlattenedDocumentBuilder
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