pub struct GetDocument {
pub depth: Option<JsUInt>,
pub pierce: Option<bool>,
}Expand description
Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.
Fields§
§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 subtree (default is false).
Trait Implementations§
Source§impl Clone for GetDocument
impl Clone for GetDocument
Source§fn clone(&self) -> GetDocument
fn clone(&self) -> GetDocument
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 GetDocument
impl Debug for GetDocument
Source§impl<'de> Deserialize<'de> for GetDocument
impl<'de> Deserialize<'de> for GetDocument
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 GetDocument
impl Method for GetDocument
const NAME: &'static str = "DOM.getDocument"
type ReturnObject = GetDocumentReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for GetDocument
impl PartialEq for GetDocument
Source§impl Serialize for GetDocument
impl Serialize for GetDocument
impl StructuralPartialEq for GetDocument
Auto Trait Implementations§
impl Freeze for GetDocument
impl RefUnwindSafe for GetDocument
impl Send for GetDocument
impl Sync for GetDocument
impl Unpin for GetDocument
impl UnsafeUnpin for GetDocument
impl UnwindSafe for GetDocument
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