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>
Sourcepub fn builder(
computed_style_whitelist: Vec<Cow<'a, str>>,
) -> GetSnapshotParamsBuilder<'a>
pub fn builder( computed_style_whitelist: Vec<Cow<'a, str>>, ) -> GetSnapshotParamsBuilder<'a>
Creates a builder for this type with the required parameters:
computed_style_whitelist: Whitelist of computed styles to return.
Sourcepub fn computed_style_whitelist(&self) -> &[Cow<'a, str>]
pub fn computed_style_whitelist(&self) -> &[Cow<'a, str>]
Whitelist of computed styles to return.
Sourcepub fn include_event_listeners(&self) -> Option<bool>
pub fn include_event_listeners(&self) -> Option<bool>
Whether or not to retrieve details of DOM listeners (default false).
Sourcepub fn include_paint_order(&self) -> Option<bool>
pub fn include_paint_order(&self) -> Option<bool>
Whether to determine and include the paint order index of LayoutTreeNodes (default false).
Sourcepub fn include_user_agent_shadow_tree(&self) -> Option<bool>
pub fn include_user_agent_shadow_tree(&self) -> Option<bool>
Whether to include UA shadow tree in the snapshot (default false).
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