Struct chromiumoxide_cdp::cdp::browser_protocol::page::CaptureScreenshotParams [−][src]
pub struct CaptureScreenshotParams { pub format: Option<CaptureScreenshotFormat>, pub quality: Option<i64>, pub clip: Option<Viewport>, pub from_surface: Option<bool>, }
Expand description
Capture page screenshot. captureScreenshot
Fields
format: Option<CaptureScreenshotFormat>
Image compression format (defaults to png).
quality: Option<i64>
Compression quality from range [0..100] (jpeg only).
clip: Option<Viewport>
Capture the screenshot of a given region only.
from_surface: Option<bool>
Capture the screenshot from the surface, rather than the view. Defaults to true.
Implementations
Trait Implementations
type Response = CaptureScreenshotReturns
type Response = CaptureScreenshotReturns
The type of the response this request triggers on the chromium server
Returns the “default value” for a type. Read more
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
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CaptureScreenshotParams
impl Send for CaptureScreenshotParams
impl Sync for CaptureScreenshotParams
impl Unpin for CaptureScreenshotParams
impl UnwindSafe for CaptureScreenshotParams
Blanket Implementations
Mutably borrows from an owned value. Read more