pub struct CloudOwaspInputs {Show 14 fields
pub spec_bytes: Vec<u8>,
pub spec_format: SpecFormat,
pub target_url: String,
pub base_path: Option<String>,
pub categories: Option<String>,
pub auth_header: String,
pub auth_token: Option<String>,
pub admin_paths: Vec<String>,
pub id_fields: Option<String>,
pub report_format: String,
pub iterations: u32,
pub vus: u32,
pub skip_tls_verify: bool,
pub headers: Option<String>,
}Expand description
Inputs for run_owasp — OWASP API Security Top 10 testing.
Built-in categories cover OWASP API1–API10 and run k6-driven; supplying
admin_paths is recommended for the BOLA / privilege-escalation checks
(they default to a small built-in list otherwise).
Fields§
§spec_bytes: Vec<u8>§spec_format: SpecFormat§target_url: String§base_path: Option<String>§categories: Option<String>Comma-separated list of OWASP category short names (e.g.
"api1,api3,api7"). Empty = all categories.
auth_header: StringHeader name to use for auth checks. Defaults to "Authorization".
auth_token: Option<String>Valid token used as the baseline for auth-bypass checks. Without it, auth-related findings are limited.
admin_paths: Vec<String>Inline list of admin / privileged paths (one per line in the OWASP
admin-paths file format — comments with # are allowed). When empty,
the OWASP generator’s built-in default list is used.
id_fields: Option<String>Comma-separated field names known to be resource IDs (e.g.
"id,user_id,order_id").
report_format: String"json" (default) or "sarif".
iterations: u32Iterations per VU. Defaults to 1.
vus: u32§skip_tls_verify: bool§headers: Option<String>Key:Value,Key2:Value2 header string.
Trait Implementations§
Source§impl Clone for CloudOwaspInputs
impl Clone for CloudOwaspInputs
Source§fn clone(&self) -> CloudOwaspInputs
fn clone(&self) -> CloudOwaspInputs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CloudOwaspInputs
impl Debug for CloudOwaspInputs
Auto Trait Implementations§
impl Freeze for CloudOwaspInputs
impl RefUnwindSafe for CloudOwaspInputs
impl Send for CloudOwaspInputs
impl Sync for CloudOwaspInputs
impl Unpin for CloudOwaspInputs
impl UnsafeUnpin for CloudOwaspInputs
impl UnwindSafe for CloudOwaspInputs
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