pub struct CaptureSnapshot {
pub method: CaptureSnapshotMethod,
pub params: CaptureSnapshotParams,
}Expand description
Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles. 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 = "Page.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 PageCommands
impl From<CaptureSnapshot> for PageCommands
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<PageCommands> for CaptureSnapshot
impl TryFrom<PageCommands> for CaptureSnapshot
Source§type Error = PageCommands
type Error = PageCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageCommands,
) -> Result<Self, <CaptureSnapshot as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <CaptureSnapshot as TryFrom<PageCommands>>::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