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

Image compression format (defaults to png).

Compression quality from range [0..100] (jpeg only).

[Experimental] Capture the screenshot of a given region only.

[Experimental] Capture the screenshot from the surface, rather than the view. Defaults to true.

Trait Implementations

impl Clone for CaptureScreenshotCommand
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CaptureScreenshotCommand
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for CaptureScreenshotCommand
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl CdpCommand for CaptureScreenshotCommand
[src]

COMMAND_NAME: &'static str = "Page.captureScreenshot"

impl SerializeCdpCommand for CaptureScreenshotCommand
[src]

[src]

[src]

impl<'de> DeserializeCdpCommand<'de> for CaptureScreenshotCommand
[src]

[src]

impl<'b> HasCdpResponse<'b> for CaptureScreenshotCommand
[src]