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

The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.

The nodes in the layout tree.

Whitelisted ComputedStyle properties for each node in the layout tree.

Trait Implementations

impl<'a> Clone for GetSnapshotResponse<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for GetSnapshotResponse<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for GetSnapshotResponse<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for GetSnapshotResponse<'a>
[src]

COMMAND_NAME: &'static str = "DOMSnapshot.getSnapshot"

impl<'a, 'b> HasCdpCommand<'a> for GetSnapshotResponse<'b>
[src]