pub struct CaptureSnapshotCommand { /* 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 CaptureSnapshotCommand
impl CaptureSnapshotCommand
pub fn new( computed_styles: Vec<String>, include_paint_order: Option<bool>, include_dom_rects: Option<bool>, ) -> Self
Sourcepub fn computed_styles(&self) -> &[String]
pub fn computed_styles(&self) -> &[String]
Whitelist of computed styles to return.
Sourcepub fn include_paint_order(&self) -> Option<&bool>
pub fn include_paint_order(&self) -> Option<&bool>
Whether to include layout object paint orders into the snapshot.
Sourcepub fn include_dom_rects(&self) -> Option<&bool>
pub fn include_dom_rects(&self) -> Option<&bool>
Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
Trait Implementations§
Source§impl Clone for CaptureSnapshotCommand
impl Clone for CaptureSnapshotCommand
Source§fn clone(&self) -> CaptureSnapshotCommand
fn clone(&self) -> CaptureSnapshotCommand
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 Command for CaptureSnapshotCommand
impl Command for CaptureSnapshotCommand
Source§impl Debug for CaptureSnapshotCommand
impl Debug for CaptureSnapshotCommand
Source§impl<'de> Deserialize<'de> for CaptureSnapshotCommand
impl<'de> Deserialize<'de> for CaptureSnapshotCommand
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 CaptureSnapshotCommand
impl RefUnwindSafe for CaptureSnapshotCommand
impl Send for CaptureSnapshotCommand
impl Sync for CaptureSnapshotCommand
impl Unpin for CaptureSnapshotCommand
impl UnwindSafe for CaptureSnapshotCommand
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