pub struct GetFlattenedDocumentParams {
pub depth: Option<i64>,
pub pierce: Option<bool>,
}Expand description
Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.
Fields§
§depth: Option<i64>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 GetFlattenedDocumentParams
impl Clone for GetFlattenedDocumentParams
Source§fn clone(&self) -> GetFlattenedDocumentParams
fn clone(&self) -> GetFlattenedDocumentParams
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 GetFlattenedDocumentParams
impl Debug for GetFlattenedDocumentParams
Source§impl Default for GetFlattenedDocumentParams
impl Default for GetFlattenedDocumentParams
Source§fn default() -> GetFlattenedDocumentParams
fn default() -> GetFlattenedDocumentParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetFlattenedDocumentParams
impl<'de> Deserialize<'de> for GetFlattenedDocumentParams
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
Auto Trait Implementations§
impl Freeze for GetFlattenedDocumentParams
impl RefUnwindSafe for GetFlattenedDocumentParams
impl Send for GetFlattenedDocumentParams
impl Sync for GetFlattenedDocumentParams
impl Unpin for GetFlattenedDocumentParams
impl UnsafeUnpin for GetFlattenedDocumentParams
impl UnwindSafe for GetFlattenedDocumentParams
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