pub struct GetSnapshotReturnObject {
pub dom_nodes: Vec<DomNode>,
pub layout_tree_nodes: Vec<LayoutTreeNode>,
pub computed_styles: Vec<ComputedStyle>,
}👎Deprecated
Expand description
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.
Fields§
§dom_nodes: Vec<DomNode>👎Deprecated
The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
layout_tree_nodes: Vec<LayoutTreeNode>👎Deprecated
The nodes in the layout tree.
computed_styles: Vec<ComputedStyle>👎Deprecated
Whitelisted ComputedStyle properties for each node in the layout tree.
Trait Implementations§
Source§impl Clone for GetSnapshotReturnObject
impl Clone for GetSnapshotReturnObject
Source§fn clone(&self) -> GetSnapshotReturnObject
fn clone(&self) -> GetSnapshotReturnObject
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 GetSnapshotReturnObject
impl Debug for GetSnapshotReturnObject
Source§impl<'de> Deserialize<'de> for GetSnapshotReturnObject
impl<'de> Deserialize<'de> for GetSnapshotReturnObject
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 PartialEq for GetSnapshotReturnObject
impl PartialEq for GetSnapshotReturnObject
Source§impl Serialize for GetSnapshotReturnObject
impl Serialize for GetSnapshotReturnObject
impl StructuralPartialEq for GetSnapshotReturnObject
Auto Trait Implementations§
impl Freeze for GetSnapshotReturnObject
impl RefUnwindSafe for GetSnapshotReturnObject
impl Send for GetSnapshotReturnObject
impl Sync for GetSnapshotReturnObject
impl Unpin for GetSnapshotReturnObject
impl UnsafeUnpin for GetSnapshotReturnObject
impl UnwindSafe for GetSnapshotReturnObject
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