pub struct CaptureScreenshotParams {
pub format: Option<CaptureScreenshotFormat>,
pub quality: Option<i64>,
pub clip: Option<Viewport>,
pub from_surface: Option<bool>,
pub capture_beyond_viewport: Option<bool>,
pub optimize_for_speed: Option<bool>,
}Expand description
Capture page screenshot.
Parameters of Page.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.
Experimental: may change without notice.
capture_beyond_viewport: Option<bool>Capture the screenshot beyond the viewport. Defaults to false.
Experimental: may change without notice.
optimize_for_speed: Option<bool>Optimize image encoding for speed, not for resulting size (defaults to false)
Experimental: may change without notice.
Trait Implementations§
Source§impl Clone for CaptureScreenshotParams
impl Clone for CaptureScreenshotParams
Source§impl Command for CaptureScreenshotParams
impl Command for CaptureScreenshotParams
Source§impl Debug for CaptureScreenshotParams
impl Debug for CaptureScreenshotParams
Source§impl Default for CaptureScreenshotParams
impl Default for CaptureScreenshotParams
Source§impl<'de> Deserialize<'de> for CaptureScreenshotParams
impl<'de> Deserialize<'de> for CaptureScreenshotParams
Source§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
Source§impl PartialEq for CaptureScreenshotParams
impl PartialEq for CaptureScreenshotParams
Source§impl Serialize for CaptureScreenshotParams
impl Serialize for CaptureScreenshotParams
impl StructuralPartialEq for CaptureScreenshotParams
Auto Trait Implementations§
impl Forget for CaptureScreenshotParams
impl Freeze for CaptureScreenshotParams
impl RefUnwindSafe for CaptureScreenshotParams
impl Send for CaptureScreenshotParams
impl Sync for CaptureScreenshotParams
impl Unpin for CaptureScreenshotParams
impl UnsafeUnpin 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