pub struct ScreenshotOptions {Show 22 fields
pub vw: Option<u32>,
pub vh: Option<u32>,
pub scale_factor: Option<f64>,
pub full: Option<bool>,
pub delay: Option<u32>,
pub wait_for: Option<String>,
pub wait_for_id: Option<String>,
pub dark_mode: Option<bool>,
pub transparent: Option<bool>,
pub selector: Option<String>,
pub selector_id: Option<String>,
pub block_cookie_banners: Option<bool>,
pub block_ads: Option<bool>,
pub bypass_bot_detection: Option<bool>,
pub image_type: Option<String>,
pub best_format: Option<bool>,
pub resize_width: Option<u32>,
pub resize_height: Option<u32>,
pub http_auth: Option<String>,
pub user_agent: Option<String>,
pub fresh: Option<bool>,
pub additional_options: Option<RequestOptions>,
}Fields§
§vw: Option<u32>§vh: Option<u32>§scale_factor: Option<f64>§full: Option<bool>§delay: Option<u32>§wait_for: Option<String>§wait_for_id: Option<String>§dark_mode: Option<bool>§transparent: Option<bool>§selector: Option<String>§selector_id: Option<String>§block_ads: Option<bool>§bypass_bot_detection: Option<bool>§image_type: Option<String>§best_format: Option<bool>§resize_width: Option<u32>§resize_height: Option<u32>§http_auth: Option<String>§user_agent: Option<String>§fresh: Option<bool>§additional_options: Option<RequestOptions>Implementations§
Source§impl ScreenshotOptions
impl ScreenshotOptions
pub fn to_request_options(&self) -> RequestOptions
Trait Implementations§
Source§impl Clone for ScreenshotOptions
impl Clone for ScreenshotOptions
Source§fn clone(&self) -> ScreenshotOptions
fn clone(&self) -> ScreenshotOptions
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 ScreenshotOptions
impl Debug for ScreenshotOptions
Source§impl Default for ScreenshotOptions
impl Default for ScreenshotOptions
Source§fn default() -> ScreenshotOptions
fn default() -> ScreenshotOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenshotOptions
impl RefUnwindSafe for ScreenshotOptions
impl Send for ScreenshotOptions
impl Sync for ScreenshotOptions
impl Unpin for ScreenshotOptions
impl UnwindSafe for ScreenshotOptions
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