pub struct TargetConfig {Show 15 fields
pub ignore_https_errors: bool,
pub request_timeout: Duration,
pub viewport: Option<Viewport>,
pub request_intercept: bool,
pub cache_enabled: bool,
pub ignore_visuals: bool,
pub ignore_javascript: bool,
pub ignore_analytics: bool,
pub ignore_stylesheets: bool,
pub only_html: bool,
pub service_worker_enabled: bool,
pub extra_headers: Option<HashMap<String, String>>,
pub intercept_manager: NetworkInterceptManager,
pub max_bytes_allowed: Option<u64>,
pub whitelist_patterns: Option<Vec<String>>,
}Expand description
Configuration for how a single target/page should be fetched and processed.
Fields§
§ignore_https_errors: bool§request_timeout: Duration§viewport: Option<Viewport>§request_intercept: bool§cache_enabled: bool§ignore_visuals: bool§ignore_javascript: bool§ignore_analytics: bool§ignore_stylesheets: bool§only_html: bool§service_worker_enabled: bool§extra_headers: Option<HashMap<String, String>>§intercept_manager: NetworkInterceptManager§max_bytes_allowed: Option<u64>§whitelist_patterns: Option<Vec<String>>Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§fn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetConfig
impl Debug for TargetConfig
Auto Trait Implementations§
impl Freeze for TargetConfig
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnwindSafe for TargetConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)