pub struct CaptureSnapshotReturns {
pub documents: Vec<DocumentSnapshot>,
pub strings: Vec<String>,
}
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. captureSnapshot
Fields§
§documents: Vec<DocumentSnapshot>
The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
strings: Vec<String>
Shared string table that all string properties refer to with indexes.
Implementations§
source§impl CaptureSnapshotReturns
impl CaptureSnapshotReturns
pub fn new( documents: Vec<DocumentSnapshot>, strings: Vec<String> ) -> CaptureSnapshotReturns
source§impl CaptureSnapshotReturns
impl CaptureSnapshotReturns
pub fn builder() -> CaptureSnapshotReturnsBuilder
Trait Implementations§
source§impl Clone for CaptureSnapshotReturns
impl Clone for CaptureSnapshotReturns
source§fn clone(&self) -> CaptureSnapshotReturns
fn clone(&self) -> CaptureSnapshotReturns
Returns a copy 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 CaptureSnapshotReturns
impl Debug for CaptureSnapshotReturns
source§impl<'de> Deserialize<'de> for CaptureSnapshotReturns
impl<'de> Deserialize<'de> for CaptureSnapshotReturns
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CaptureSnapshotReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CaptureSnapshotReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CaptureSnapshotReturns
impl PartialEq for CaptureSnapshotReturns
source§fn eq(&self, other: &CaptureSnapshotReturns) -> bool
fn eq(&self, other: &CaptureSnapshotReturns) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CaptureSnapshotReturns
impl Serialize for CaptureSnapshotReturns
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CaptureSnapshotReturns
Auto Trait Implementations§
impl Freeze for CaptureSnapshotReturns
impl RefUnwindSafe for CaptureSnapshotReturns
impl Send for CaptureSnapshotReturns
impl Sync for CaptureSnapshotReturns
impl Unpin for CaptureSnapshotReturns
impl UnwindSafe for CaptureSnapshotReturns
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