pub struct GetSnapshotParams {
pub computedStyleWhitelist: Vec<String>,
pub includeEventListeners: Option<bool>,
pub includePaintOrder: Option<bool>,
pub includeUserAgentShadowTree: Option<bool>,
}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.
Fields§
§computedStyleWhitelist: Vec<String>Whitelist of computed styles to return.
includeEventListeners: Option<bool>Whether or not to retrieve details of DOM listeners (default false).
includePaintOrder: Option<bool>Whether to determine and include the paint order index of LayoutTreeNodes (default false).
includeUserAgentShadowTree: Option<bool>Whether to include UA shadow tree in the snapshot (default false).
Implementations§
Trait Implementations§
Source§impl CdpCommand for GetSnapshotParams
impl CdpCommand for GetSnapshotParams
Source§impl Clone for GetSnapshotParams
impl Clone for GetSnapshotParams
Source§fn clone(&self) -> GetSnapshotParams
fn clone(&self) -> GetSnapshotParams
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 GetSnapshotParams
impl Debug for GetSnapshotParams
Source§impl Default for GetSnapshotParams
impl Default for GetSnapshotParams
Source§fn default() -> GetSnapshotParams
fn default() -> GetSnapshotParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetSnapshotParams
impl<'de> Deserialize<'de> for GetSnapshotParams
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 GetSnapshotParams
impl RefUnwindSafe for GetSnapshotParams
impl Send for GetSnapshotParams
impl Sync for GetSnapshotParams
impl Unpin for GetSnapshotParams
impl UnsafeUnpin for GetSnapshotParams
impl UnwindSafe for GetSnapshotParams
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