pub struct ScreenshotOptions {
pub format: ScreenshotFormat,
pub quality: Option<u8>,
pub clip: Option<ScreenshotClip>,
pub full_page: bool,
}Expand description
Screenshot encoding and extent. The default captures the visible viewport as PNG.
Fields§
§format: ScreenshotFormatImage encoding.
quality: Option<u8>JPEG/WebP quality from 0 through 100; invalid for PNG.
clip: Option<ScreenshotClip>Document-relative CSS crop, mutually exclusive with full_page.
full_page: boolCapture the complete CSS document content rather than the visible viewport.
Trait Implementations§
Source§impl Clone for ScreenshotOptions
impl Clone for ScreenshotOptions
impl Copy for ScreenshotOptions
Source§impl Debug for ScreenshotOptions
impl Debug for ScreenshotOptions
Source§impl Default for ScreenshotOptions
impl Default for ScreenshotOptions
Source§impl PartialEq for ScreenshotOptions
impl PartialEq for ScreenshotOptions
impl StructuralPartialEq for ScreenshotOptions
Auto Trait Implementations§
impl Freeze for ScreenshotOptions
impl RefUnwindSafe for ScreenshotOptions
impl Send for ScreenshotOptions
impl Sync for ScreenshotOptions
impl Unpin for ScreenshotOptions
impl UnsafeUnpin for ScreenshotOptions
impl UnwindSafe for ScreenshotOptions
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