Struct spider::features::chrome_common::ScreenShotConfig
source · pub struct ScreenShotConfig {
pub params: ScreenshotParams,
pub bytes: bool,
pub save: bool,
pub output_dir: Option<PathBuf>,
}
Expand description
Screenshot configuration.
Fields§
§params: ScreenshotParams
The screenshot params.
bytes: bool
Return the bytes of the screenshot on the Page.
save: bool
Store the screenshot to disk. This can be used with output_dir. If disabled will not store the file to the output directory.
output_dir: Option<PathBuf>
The output directory to store the file. Parant folders may be created inside the directory.
Implementations§
Trait Implementations§
source§impl Clone for ScreenShotConfig
impl Clone for ScreenShotConfig
source§fn clone(&self) -> ScreenShotConfig
fn clone(&self) -> ScreenShotConfig
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 ScreenShotConfig
impl Debug for ScreenShotConfig
source§impl Default for ScreenShotConfig
impl Default for ScreenShotConfig
source§fn default() -> ScreenShotConfig
fn default() -> ScreenShotConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenShotConfig
impl RefUnwindSafe for ScreenShotConfig
impl Send for ScreenShotConfig
impl Sync for ScreenShotConfig
impl Unpin for ScreenShotConfig
impl UnwindSafe for ScreenShotConfig
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