pub struct ScreenshotOpts {
pub window_size: Option<(usize, usize)>,
pub await_selector: Option<String>,
pub remove_selector: Option<String>,
pub selector: Option<String>,
/* private fields */
}Expand description
A type encompassing options for capturing a screenshot.
Fields§
§window_size: Option<(usize, usize)>The dimensions of the window to configure, in pixels.
await_selector: Option<String>The CSS selector describing an element to wait for before capturing a screenshot.
remove_selector: Option<String>The selector identifying one or more elements to remove before the screenshot is captured.
selector: Option<String>The selector describing the element to screenshot.
Trait Implementations§
Source§impl Clone for ScreenshotOpts
impl Clone for ScreenshotOpts
Source§fn clone(&self) -> ScreenshotOpts
fn clone(&self) -> ScreenshotOpts
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 ScreenshotOpts
impl Debug for ScreenshotOpts
Source§impl Default for ScreenshotOpts
impl Default for ScreenshotOpts
Source§fn default() -> ScreenshotOpts
fn default() -> ScreenshotOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenshotOpts
impl RefUnwindSafe for ScreenshotOpts
impl Send for ScreenshotOpts
impl Sync for ScreenshotOpts
impl Unpin for ScreenshotOpts
impl UnwindSafe for ScreenshotOpts
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