pub struct CaptureSnapshot {
pub method: CaptureSnapshotMethod,
pub params: CaptureSnapshotParams,
}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. captureSnapshot
Fields§
§method: CaptureSnapshotMethod§params: CaptureSnapshotParamsImplementations§
Source§impl CaptureSnapshot
impl CaptureSnapshot
pub fn builder() -> CaptureSnapshotBuilder
Source§impl CaptureSnapshot
impl CaptureSnapshot
pub const IDENTIFIER: &'static str = "DOMSnapshot.captureSnapshot"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CaptureSnapshot
impl Clone for CaptureSnapshot
Source§fn clone(&self) -> CaptureSnapshot
fn clone(&self) -> CaptureSnapshot
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 CommandResult for CaptureSnapshot
impl CommandResult for CaptureSnapshot
type Result = CaptureSnapshotResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for CaptureSnapshot
impl Debug for CaptureSnapshot
Source§impl<'de> Deserialize<'de> for CaptureSnapshot
impl<'de> Deserialize<'de> for CaptureSnapshot
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 From<CaptureSnapshot> for BrowserProtocolCommands
impl From<CaptureSnapshot> for BrowserProtocolCommands
Source§fn from(v: CaptureSnapshot) -> Self
fn from(v: CaptureSnapshot) -> Self
Converts to this type from the input type.
Source§impl From<CaptureSnapshot> for Command
impl From<CaptureSnapshot> for Command
Source§fn from(v: CaptureSnapshot) -> Self
fn from(v: CaptureSnapshot) -> Self
Converts to this type from the input type.
Source§impl From<CaptureSnapshot> for DomSnapshotCommands
impl From<CaptureSnapshot> for DomSnapshotCommands
Source§fn from(v: CaptureSnapshot) -> Self
fn from(v: CaptureSnapshot) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CaptureSnapshot
impl PartialEq for CaptureSnapshot
Source§impl Serialize for CaptureSnapshot
impl Serialize for CaptureSnapshot
Source§impl TryFrom<BrowserProtocolCommands> for CaptureSnapshot
impl TryFrom<BrowserProtocolCommands> for CaptureSnapshot
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <CaptureSnapshot as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <CaptureSnapshot as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for CaptureSnapshot
impl TryFrom<Command> for CaptureSnapshot
Source§impl TryFrom<DomSnapshotCommands> for CaptureSnapshot
impl TryFrom<DomSnapshotCommands> for CaptureSnapshot
Source§type Error = DomSnapshotCommands
type Error = DomSnapshotCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DomSnapshotCommands,
) -> Result<Self, <CaptureSnapshot as TryFrom<DomSnapshotCommands>>::Error>
fn try_from( e: DomSnapshotCommands, ) -> Result<Self, <CaptureSnapshot as TryFrom<DomSnapshotCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for CaptureSnapshot
Auto Trait Implementations§
impl Freeze for CaptureSnapshot
impl RefUnwindSafe for CaptureSnapshot
impl Send for CaptureSnapshot
impl Sync for CaptureSnapshot
impl Unpin for CaptureSnapshot
impl UnsafeUnpin for CaptureSnapshot
impl UnwindSafe for CaptureSnapshot
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