pub struct HandlerConfig {Show 13 fields
pub ignore_https_errors: bool,
pub viewport: Option<Viewport>,
pub context_ids: Vec<BrowserContextId>,
pub request_timeout: Duration,
pub request_intercept: bool,
pub cache_enabled: bool,
pub ignore_visuals: bool,
pub ignore_stylesheets: bool,
pub ignore_javascript: bool,
pub ignore_ads: bool,
pub extra_headers: Option<HashMap<String, String>>,
pub only_html: bool,
pub created_first_target: bool,
}Expand description
How to configure the handler
Fields§
§ignore_https_errors: boolWhether the NetworkManagers should ignore https errors
viewport: Option<Viewport>Window and device settings
context_ids: Vec<BrowserContextId>Context ids to set from the get go
request_timeout: Durationdefault request timeout to use
request_intercept: boolWhether to enable request interception
cache_enabled: boolWhether to enable cache
ignore_visuals: boolWhether to ignore visuals.
ignore_stylesheets: boolWhether to ignore stylesheets.
ignore_javascript: boolWhether to ignore stylesheets.
ignore_ads: boolWhether to ignore ads.
extra_headers: Option<HashMap<String, String>>Extra headers.
only_html: boolOnly Html.
created_first_target: boolCreated the first target.
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
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 HandlerConfig
impl Debug for HandlerConfig
Auto Trait Implementations§
impl Freeze for HandlerConfig
impl RefUnwindSafe for HandlerConfig
impl Send for HandlerConfig
impl Sync for HandlerConfig
impl Unpin for HandlerConfig
impl UnwindSafe for HandlerConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more