pub struct CaptureSnapshotReturn { /* private fields */ }Available on crate features
experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.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.
Implementations§
Source§impl CaptureSnapshotReturn
impl CaptureSnapshotReturn
pub fn new(documents: Vec<DocumentSnapshot>, strings: Vec<String>) -> Self
Sourcepub fn documents(&self) -> &[DocumentSnapshot]
pub fn documents(&self) -> &[DocumentSnapshot]
The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
Trait Implementations§
Source§impl Clone for CaptureSnapshotReturn
impl Clone for CaptureSnapshotReturn
Source§fn clone(&self) -> CaptureSnapshotReturn
fn clone(&self) -> CaptureSnapshotReturn
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 CaptureSnapshotReturn
impl Debug for CaptureSnapshotReturn
Source§impl<'de> Deserialize<'de> for CaptureSnapshotReturn
impl<'de> Deserialize<'de> for CaptureSnapshotReturn
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 CaptureSnapshotReturn
impl RefUnwindSafe for CaptureSnapshotReturn
impl Send for CaptureSnapshotReturn
impl Sync for CaptureSnapshotReturn
impl Unpin for CaptureSnapshotReturn
impl UnwindSafe for CaptureSnapshotReturn
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