pub struct GetSnapshot {
pub computed_style_whitelist: Vec<String>,
pub include_event_listeners: Option<bool>,
pub include_paint_order: Option<bool>,
pub include_user_agent_shadow_tree: Option<bool>,
}👎Deprecated
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§
§computed_style_whitelist: Vec<String>👎Deprecated
Whitelist of computed styles to return.
include_event_listeners: Option<bool>👎Deprecated
Whether or not to retrieve details of DOM listeners (default false).
include_paint_order: Option<bool>👎Deprecated
Whether to determine and include the paint order index of LayoutTreeNodes (default false).
include_user_agent_shadow_tree: Option<bool>👎Deprecated
Whether to include UA shadow tree in the snapshot (default false).
Trait Implementations§
Source§impl Clone for GetSnapshot
impl Clone for GetSnapshot
Source§fn clone(&self) -> GetSnapshot
fn clone(&self) -> GetSnapshot
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 GetSnapshot
impl Debug for GetSnapshot
Source§impl<'de> Deserialize<'de> for GetSnapshot
impl<'de> Deserialize<'de> for GetSnapshot
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
Source§impl Method for GetSnapshot
impl Method for GetSnapshot
const NAME: &'static str = "DOMSnapshot.getSnapshot"
type ReturnObject = GetSnapshotReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for GetSnapshot
impl PartialEq for GetSnapshot
Source§impl Serialize for GetSnapshot
impl Serialize for GetSnapshot
impl StructuralPartialEq for GetSnapshot
Auto Trait Implementations§
impl Freeze for GetSnapshot
impl RefUnwindSafe for GetSnapshot
impl Send for GetSnapshot
impl Sync for GetSnapshot
impl Unpin for GetSnapshot
impl UnsafeUnpin for GetSnapshot
impl UnwindSafe for GetSnapshot
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