Struct cdp::page::CaptureScreenshotCommand
[−]
[src]
pub struct CaptureScreenshotCommand { pub format: Option<CaptureScreenshotCommandFormat>, pub quality: Option<i32>, pub clip: Option<Viewport>, pub from_surface: Option<bool>, }
[Experimental] Capture page screenshot.
Command Page.captureScreenshot
Domain Module: cdp::page
Command Struct: cdp::page::CaptureScreenshotCommand
Response Struct: cdp::page::CaptureScreenshotResponse
Fields
format: Option<CaptureScreenshotCommandFormat>
Image compression format (defaults to png).
quality: Option<i32>
Compression quality from range [0..100] (jpeg only).
clip: Option<Viewport>
[Experimental] Capture the screenshot of a given region only.
from_surface: Option<bool>
[Experimental] Capture the screenshot from the surface, rather than the view. Defaults to true.
Trait Implementations
impl Clone for CaptureScreenshotCommand
[src]
fn clone(&self) -> CaptureScreenshotCommand
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CaptureScreenshotCommand
[src]
impl PartialEq for CaptureScreenshotCommand
[src]
fn eq(&self, __arg_0: &CaptureScreenshotCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CaptureScreenshotCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for CaptureScreenshotCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Page.captureScreenshot"
impl SerializeCdpCommand for CaptureScreenshotCommand
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for CaptureScreenshotCommand
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,