pub struct ScanContext {
pub target: String,
pub baseline_id: String,
pub probe_id: String,
pub headers: HeaderMap,
pub max_risk: RiskLevel,
pub known_duplicate: Option<KnownDuplicate>,
pub state_field: Option<StateField>,
pub alt_credential: Option<HeaderMap>,
pub body_template: Option<String>,
}Expand description
All operator-supplied parameters that govern a single elicitation scan.
Strategies inspect ScanContext to decide applicability and to construct
ProbeSpec values. No I/O occurs here — this is pure configuration.
Fields§
§target: StringTarget URL template; may contain {id} placeholder.
baseline_id: StringKnown-existing resource identifier.
probe_id: StringKnown-nonexistent resource identifier.
headers: HeaderMapCommon to all probes — typically includes Authorization.
max_risk: RiskLevelStrategies above this risk level are skipped.
known_duplicate: Option<KnownDuplicate>Known duplicate field value for uniqueness-conflict strategies. None if
not applicable.
state_field: Option<StateField>Field value that triggers invalid-state for state-transition strategies.
None if not applicable.
alt_credential: Option<HeaderMap>Alternative (under-scoped) credential set for scope-manipulation strategies.
None if not applicable.
body_template: Option<String>Optional body template with {id} placeholder.
Used when the resource identifier appears in the request body rather than the URL.
Trait Implementations§
Source§impl Clone for ScanContext
impl Clone for ScanContext
Source§fn clone(&self) -> ScanContext
fn clone(&self) -> ScanContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more