pub struct CaptureSnapshotParams<'a> { /* private fields */ }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<'a> CaptureSnapshotParams<'a>
impl<'a> CaptureSnapshotParams<'a>
pub fn builder( computedStyles: Vec<Cow<'a, str>>, ) -> CaptureSnapshotParamsBuilder<'a>
pub fn computedStyles(&self) -> &[Cow<'a, str>]
pub fn includePaintOrder(&self) -> Option<bool>
pub fn includeDOMRects(&self) -> Option<bool>
pub fn includeBlendedBackgroundColors(&self) -> Option<bool>
pub fn includeTextColorOpacities(&self) -> Option<bool>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for CaptureSnapshotParams<'a>
impl<'a> CdpCommand<'a> for CaptureSnapshotParams<'a>
Source§impl<'a> Clone for CaptureSnapshotParams<'a>
impl<'a> Clone for CaptureSnapshotParams<'a>
Source§fn clone(&self) -> CaptureSnapshotParams<'a>
fn clone(&self) -> CaptureSnapshotParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CaptureSnapshotParams<'a>
impl<'a> Debug for CaptureSnapshotParams<'a>
Source§impl<'a> Default for CaptureSnapshotParams<'a>
impl<'a> Default for CaptureSnapshotParams<'a>
Source§fn default() -> CaptureSnapshotParams<'a>
fn default() -> CaptureSnapshotParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CaptureSnapshotParams<'a>
impl<'de, 'a> Deserialize<'de> for CaptureSnapshotParams<'a>
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<'a> Freeze for CaptureSnapshotParams<'a>
impl<'a> RefUnwindSafe for CaptureSnapshotParams<'a>
impl<'a> Send for CaptureSnapshotParams<'a>
impl<'a> Sync for CaptureSnapshotParams<'a>
impl<'a> Unpin for CaptureSnapshotParams<'a>
impl<'a> UnsafeUnpin for CaptureSnapshotParams<'a>
impl<'a> UnwindSafe for CaptureSnapshotParams<'a>
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