Struct shave::ScreenshotOpts
source · pub struct ScreenshotOpts {
pub await_selector: Option<String>,
pub selector: Option<String>,
/* private fields */
}Expand description
A type encompassing options for capturing a screenshot.
Fields§
§await_selector: Option<String>The CSS selector describing an element to wait for before capturing a screenshot.
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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)