pub struct SecurityTestGenerator;Expand description
Generates k6 JavaScript code for security testing
Implementations§
Source§impl SecurityTestGenerator
impl SecurityTestGenerator
Sourcepub fn generate_payload_selection(
payloads: &[SecurityPayload],
cycle_all: bool,
) -> String
pub fn generate_payload_selection( payloads: &[SecurityPayload], cycle_all: bool, ) -> String
Generate k6 code for security payload selection When cycle_all is true, payloads are cycled through sequentially instead of randomly
Sourcepub fn generate_apply_payload(target_fields: &[String]) -> String
pub fn generate_apply_payload(target_fields: &[String]) -> String
Generate k6 code for applying security payload to request
Sourcepub fn generate_security_checks() -> String
pub fn generate_security_checks() -> String
Generate k6 code for security test checks
Auto Trait Implementations§
impl Freeze for SecurityTestGenerator
impl RefUnwindSafe for SecurityTestGenerator
impl Send for SecurityTestGenerator
impl Sync for SecurityTestGenerator
impl Unpin for SecurityTestGenerator
impl UnwindSafe for SecurityTestGenerator
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> 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