pub struct CaptureOptions { /* private fields */ }Expand description
Configuration options for HTML screenshot capture.
Implementations§
Source§impl CaptureOptions
impl CaptureOptions
pub fn new() -> Self
pub fn with_format(self, format: ImageFormat) -> Self
pub fn with_quality(self, quality: u8) -> Self
pub fn with_viewport(self, viewport: Viewport) -> Self
pub fn with_full_page(self, full_page: bool) -> Self
pub fn with_omit_background(self, omit: bool) -> Self
pub fn with_clip(self, clip: ClipRegion) -> Self
pub fn raw_png() -> Self
pub fn high_quality_jpeg() -> Self
pub fn hidpi() -> Self
pub fn ultra_hidpi() -> Self
pub fn with_raw_png(self, raw: bool) -> Self
👎Deprecated since 0.2.0: Use
with_format() insteadTrait Implementations§
Source§impl Clone for CaptureOptions
impl Clone for CaptureOptions
Source§fn clone(&self) -> CaptureOptions
fn clone(&self) -> CaptureOptions
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 moreSource§impl Debug for CaptureOptions
impl Debug for CaptureOptions
Source§impl Default for CaptureOptions
impl Default for CaptureOptions
Source§fn default() -> CaptureOptions
fn default() -> CaptureOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureOptions
impl RefUnwindSafe for CaptureOptions
impl Send for CaptureOptions
impl Sync for CaptureOptions
impl Unpin for CaptureOptions
impl UnwindSafe for CaptureOptions
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