pub struct CloudWafBenchInputs {
pub spec_bytes: Vec<u8>,
pub spec_format: SpecFormat,
pub target_url: String,
pub base_path: Option<String>,
pub duration: String,
pub vus: u32,
pub scenario: String,
pub rules_dir: String,
pub cycle_all: bool,
pub auth: Option<String>,
pub headers: Option<String>,
pub skip_tls_verify: bool,
}Expand description
Inputs for run_wafbench — Microsoft WAFBench-style coverage tests using
the OWASP Core Rule Set attack patterns.
rules_dir must be a directory or glob pattern reachable on the host
running the bench. In production this is the bundled CRS install path
(e.g. /usr/share/mockforge/wafbench/); leaving it empty is an error.
Fields§
§spec_bytes: Vec<u8>§spec_format: SpecFormat§target_url: String§base_path: Option<String>§duration: String§vus: u32§scenario: String§rules_dir: StringFilesystem path or glob pattern to WAFBench rule YAMLs.
cycle_all: boolWhen true, exhaustively cycle through every payload instead of random sampling. Use for coverage runs; expect long durations.
auth: Option<String>§headers: Option<String>§skip_tls_verify: boolTrait Implementations§
Source§impl Clone for CloudWafBenchInputs
impl Clone for CloudWafBenchInputs
Source§fn clone(&self) -> CloudWafBenchInputs
fn clone(&self) -> CloudWafBenchInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudWafBenchInputs
impl Debug for CloudWafBenchInputs
Auto Trait Implementations§
impl Freeze for CloudWafBenchInputs
impl RefUnwindSafe for CloudWafBenchInputs
impl Send for CloudWafBenchInputs
impl Sync for CloudWafBenchInputs
impl Unpin for CloudWafBenchInputs
impl UnsafeUnpin for CloudWafBenchInputs
impl UnwindSafe for CloudWafBenchInputs
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