Struct chrome_remote_interface_model::page::CaptureScreenshotCommandBuilder[][src]

pub struct CaptureScreenshotCommandBuilder { /* fields omitted */ }
This is supported on crate features Page and Debugger and DOM and IO and Network and Runtime only.

Implementations

impl CaptureScreenshotCommandBuilder[src]

pub fn format(&mut self, v: CaptureScreenshotCommandFormat) -> &mut Self[src]

Image compression format (defaults to png).

pub fn quality(&mut self, v: u32) -> &mut Self[src]

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

pub fn clip(&mut self, v: Viewport) -> &mut Self[src]

Capture the screenshot of a given region only.

pub fn from_surface(&mut self, v: bool) -> &mut Self[src]

This is supported on crate feature experimental only.

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

pub fn build(&mut self) -> Result<CaptureScreenshotCommand, &'static str>[src]

Trait Implementations

impl Clone for CaptureScreenshotCommandBuilder[src]

impl Debug for CaptureScreenshotCommandBuilder[src]

impl Default for CaptureScreenshotCommandBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.