Struct spider::features::chrome_common::CaptureScreenshotParams
source · pub struct CaptureScreenshotParams {
pub format: Option<CaptureScreenshotFormat>,
pub quality: Option<i64>,
pub clip: Option<ClipViewport>,
pub from_surface: Option<bool>,
pub capture_beyond_viewport: 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<ClipViewport>
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.
capture_beyond_viewport: Option<bool>
Capture the screenshot beyond the viewport. Defaults to false.
Trait Implementations§
source§impl Clone for CaptureScreenshotParams
impl Clone for CaptureScreenshotParams
source§fn clone(&self) -> CaptureScreenshotParams
fn clone(&self) -> CaptureScreenshotParams
Returns a copy 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 Debug for CaptureScreenshotParams
impl Debug for CaptureScreenshotParams
source§impl Default for CaptureScreenshotParams
impl Default for CaptureScreenshotParams
source§fn default() -> CaptureScreenshotParams
fn default() -> CaptureScreenshotParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureScreenshotParams
impl RefUnwindSafe for CaptureScreenshotParams
impl Send for CaptureScreenshotParams
impl Sync for CaptureScreenshotParams
impl Unpin for CaptureScreenshotParams
impl UnwindSafe for CaptureScreenshotParams
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