pub struct CloudSecurityInputs {
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 categories: Option<String>,
pub target_fields: Option<String>,
pub auth: Option<String>,
pub headers: Option<String>,
pub skip_tls_verify: bool,
}Expand description
Inputs for run_security — payload-injection security testing layered on
a standard k6 bench run.
Built-in payload categories (SQL injection, XSS, command injection, path
traversal, etc.) are baked into the binary. Supplying a custom payloads
file is intentionally not supported in cloud mode — submit overrides via
categories instead.
Fields§
§spec_bytes: Vec<u8>§spec_format: SpecFormat§target_url: String§base_path: Option<String>§duration: String§vus: u32§scenario: String§categories: Option<String>Comma-separated category names (e.g. "sql,xss,cmd"). Empty = all.
target_fields: Option<String>Comma-separated field names to inject into (e.g. "username,query").
auth: Option<String>§headers: Option<String>§skip_tls_verify: boolTrait Implementations§
Source§impl Clone for CloudSecurityInputs
impl Clone for CloudSecurityInputs
Source§fn clone(&self) -> CloudSecurityInputs
fn clone(&self) -> CloudSecurityInputs
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 CloudSecurityInputs
impl Debug for CloudSecurityInputs
Auto Trait Implementations§
impl Freeze for CloudSecurityInputs
impl RefUnwindSafe for CloudSecurityInputs
impl Send for CloudSecurityInputs
impl Sync for CloudSecurityInputs
impl Unpin for CloudSecurityInputs
impl UnsafeUnpin for CloudSecurityInputs
impl UnwindSafe for CloudSecurityInputs
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