Skip to main content

AcquisitionRequest

Struct AcquisitionRequest 

Source
pub struct AcquisitionRequest {
Show 14 fields pub url: String, pub mode: AcquisitionMode, pub wait_for_selector: Option<String>, pub extraction_js: Option<String>, pub total_timeout: Duration, pub navigation_timeout: Duration, pub request_timeout: Duration, pub html_excerpt_bytes: usize, pub investigate_start: Option<StrategyUsed>, pub browserbase_enabled: bool, pub freshness_contract: Option<FreshnessContract>, pub replay_defense: Option<ReplayDefenseContext>, pub transport_realism: Option<TransportRealismContext>, pub interstitial: Option<InterstitialContext>,
}
Expand description

One acquisition request.

Fields§

§url: String

Target URL.

§mode: AcquisitionMode

Acquisition mode.

§wait_for_selector: Option<String>

Optional selector that must be present for browser-stage success.

§extraction_js: Option<String>

Optional JavaScript extraction expression evaluated in browser stages.

§total_timeout: Duration

Hard wall-clock timeout for the whole acquisition attempt.

§navigation_timeout: Duration

Per-navigation timeout for browser stages.

§request_timeout: Duration

Per-request timeout for HTTP stages.

§html_excerpt_bytes: usize

Maximum HTML bytes captured into html_excerpt.

§investigate_start: Option<StrategyUsed>

Optional policy-guided stage that Investigate mode starts from.

§browserbase_enabled: bool

Opt into the optional Browserbase-managed stage when available.

§freshness_contract: Option<FreshnessContract>

Optional previously-captured FreshnessContract for the sticky identity being reused. When set, the runner evaluates freshness against this contract before any stage executes. If the contract is invalid (stale TTL, signature mismatch, or domain mismatch), the runner short-circuits with a structured rejection and the AcquisitionResult::freshness field is populated with the FreshnessReport describing why.

§replay_defense: Option<ReplayDefenseContext>

Optional ReplayDefenseContext (T81). When set, the runner evaluates the policy against the supplied state before any stage executes. If the decision requires a forced refresh (rotation due, nonce expired/rotated, or signature drift with force_reset_on_drift = true), the runner calls BrowserPool::release_context to invalidate the sticky session for the target host and short-circuits with a structured rejection. The full ReplayDefenseReport is attached to AcquisitionResult::replay_defense.

§transport_realism: Option<TransportRealismContext>

Optional TransportRealismContext (T82) — typed AcquisitionRunner strategy hint. When set, the runner evaluates the supplied TransportObservation against the supplied TransportProfile via the transport-realism scorer and attaches the resulting TransportRealismReport to AcquisitionResult::transport_realism. The runner does not short-circuit on low scores — strategy hints are observed by downstream policy mapping (T83 / T85 / T89 / T93), not enforced by the runner itself.

§interstitial: Option<InterstitialContext>

Optional InterstitialContext (T94) — typed AcquisitionRunner failure-recovery hint. When set, the runner classifies the supplied PageSignature via the InterstitialRouter before any stage executes. The resulting RouterDecision is attached to AcquisitionResult::interstitial. When the decision is non-Transient and the policy’s short_circuit_on_classified is true (the default), the runner short-circuits with a structured StageFailureKind::InterstitialRouted failure so the calling layer can dispatch the dedicated route without burning through the generic ladder.

Trait Implementations§

Source§

impl Clone for AcquisitionRequest

Source§

fn clone(&self) -> AcquisitionRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AcquisitionRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AcquisitionRequest

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,