pub struct GetSnapshotParams<'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> GetSnapshotParams<'a>
impl<'a> GetSnapshotParams<'a>
pub fn builder( computedStyleWhitelist: Vec<Cow<'a, str>>, ) -> GetSnapshotParamsBuilder<'a>
pub fn computedStyleWhitelist(&self) -> &[Cow<'a, str>]
pub fn includeEventListeners(&self) -> Option<bool>
pub fn includePaintOrder(&self) -> Option<bool>
pub fn includeUserAgentShadowTree(&self) -> Option<bool>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for GetSnapshotParams<'a>
impl<'a> CdpCommand<'a> for GetSnapshotParams<'a>
Source§impl<'a> Clone for GetSnapshotParams<'a>
impl<'a> Clone for GetSnapshotParams<'a>
Source§fn clone(&self) -> GetSnapshotParams<'a>
fn clone(&self) -> GetSnapshotParams<'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 GetSnapshotParams<'a>
impl<'a> Debug for GetSnapshotParams<'a>
Source§impl<'a> Default for GetSnapshotParams<'a>
impl<'a> Default for GetSnapshotParams<'a>
Source§fn default() -> GetSnapshotParams<'a>
fn default() -> GetSnapshotParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for GetSnapshotParams<'a>
impl<'de, 'a> Deserialize<'de> for GetSnapshotParams<'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 GetSnapshotParams<'a>
impl<'a> RefUnwindSafe for GetSnapshotParams<'a>
impl<'a> Send for GetSnapshotParams<'a>
impl<'a> Sync for GetSnapshotParams<'a>
impl<'a> Unpin for GetSnapshotParams<'a>
impl<'a> UnsafeUnpin for GetSnapshotParams<'a>
impl<'a> UnwindSafe for GetSnapshotParams<'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