pub struct CaptureScreenshotCommandBuilder { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Implementations§
Source§impl CaptureScreenshotCommandBuilder
impl CaptureScreenshotCommandBuilder
Sourcepub fn format(&mut self, v: CaptureScreenshotCommandFormat) -> &mut Self
pub fn format(&mut self, v: CaptureScreenshotCommandFormat) -> &mut Self
Image compression format (defaults to png).
Sourcepub fn quality(&mut self, v: u32) -> &mut Self
pub fn quality(&mut self, v: u32) -> &mut Self
Compression quality from range [0..100] (jpeg only).
Sourcepub fn clip(&mut self, v: Viewport) -> &mut Self
pub fn clip(&mut self, v: Viewport) -> &mut Self
Capture the screenshot of a given region only.
Sourcepub fn from_surface(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn from_surface(&mut self, v: bool) -> &mut Self
experimental only.Capture the screenshot from the surface, rather than the view. Defaults to true.
Sourcepub fn capture_beyond_viewport(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn capture_beyond_viewport(&mut self, v: bool) -> &mut Self
experimental only.Capture the screenshot beyond the viewport. Defaults to false.
pub fn build(&mut self) -> Result<CaptureScreenshotCommand, &'static str>
Trait Implementations§
Source§impl Clone for CaptureScreenshotCommandBuilder
impl Clone for CaptureScreenshotCommandBuilder
Source§fn clone(&self) -> CaptureScreenshotCommandBuilder
fn clone(&self) -> CaptureScreenshotCommandBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CaptureScreenshotCommandBuilder
impl RefUnwindSafe for CaptureScreenshotCommandBuilder
impl Send for CaptureScreenshotCommandBuilder
impl Sync for CaptureScreenshotCommandBuilder
impl Unpin for CaptureScreenshotCommandBuilder
impl UnwindSafe for CaptureScreenshotCommandBuilder
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