Struct cdp::dom_snapshot::GetSnapshotResponse
[−]
[src]
pub struct GetSnapshotResponse<'a> { pub dom_nodes: Vec<DomNode<'a>>, pub layout_tree_nodes: Vec<LayoutTreeNode<'a>>, pub computed_styles: Vec<ComputedStyle<'a>>, }
[Experimental] Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.
Command DOMSnapshot.getSnapshot
Domain Module: cdp::dom_snapshot
Command Struct: cdp::dom_snapshot::GetSnapshotCommand
Response Struct: cdp::dom_snapshot::GetSnapshotResponse
Fields
dom_nodes: Vec<DomNode<'a>>
The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
layout_tree_nodes: Vec<LayoutTreeNode<'a>>
The nodes in the layout tree.
computed_styles: Vec<ComputedStyle<'a>>
Whitelisted ComputedStyle properties for each node in the layout tree.
Trait Implementations
impl<'a> Clone for GetSnapshotResponse<'a>
[src]
fn clone(&self) -> GetSnapshotResponse<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for GetSnapshotResponse<'a>
[src]
impl<'a> PartialEq for GetSnapshotResponse<'a>
[src]
fn eq(&self, __arg_0: &GetSnapshotResponse<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GetSnapshotResponse<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for GetSnapshotResponse<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "DOMSnapshot.getSnapshot"