pub struct ResolvedFetchParams {
pub google_search: bool,
pub timeout_ms: f64,
pub wait_ms: u64,
pub extra_headers: HashMap<String, String>,
pub disable_resources: bool,
pub network_idle: bool,
pub load_dom: bool,
pub wait_selector: Option<String>,
pub wait_selector_state: WaitState,
pub blocked_domains: HashSet<String>,
pub solve_cloudflare: bool,
}Expand description
Fully resolved fetch parameters produced by merging FetchParams with BrowserConfig.
Unlike FetchParams (which is all Options), every field here has a concrete
value. This struct is constructed internally by FetchParams::merge_with_config
and consumed by the session’s navigation logic. You will not normally create one
yourself.
Fields§
§google_search: boolWhether to prepend a Google-search warm-up navigation.
timeout_ms: f64Navigation timeout in milliseconds.
wait_ms: u64Post-load sleep delay in milliseconds.
extra_headers: HashMap<String, String>Extra HTTP headers to send with the request.
disable_resources: boolBlock heavyweight resource types when true.
network_idle: boolWait for the network-idle event after navigation.
load_dom: boolWait for DOMContentLoaded after navigation.
wait_selector: Option<String>CSS selector to wait for before returning page content.
wait_selector_state: WaitStateRequired state of the wait selector.
blocked_domains: HashSet<String>Domains whose requests should be blocked.
solve_cloudflare: boolAttempt to solve Cloudflare challenges when true.
Trait Implementations§
Source§impl Clone for ResolvedFetchParams
impl Clone for ResolvedFetchParams
Source§fn clone(&self) -> ResolvedFetchParams
fn clone(&self) -> ResolvedFetchParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedFetchParams
impl RefUnwindSafe for ResolvedFetchParams
impl Send for ResolvedFetchParams
impl Sync for ResolvedFetchParams
impl Unpin for ResolvedFetchParams
impl UnsafeUnpin for ResolvedFetchParams
impl UnwindSafe for ResolvedFetchParams
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
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>
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>
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