pub struct CloudBenchInputs {Show 16 fields
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 operations: Option<String>,
pub exclude_operations: Option<String>,
pub auth: Option<String>,
pub headers: Option<String>,
pub threshold_percentile: String,
pub threshold_ms: u64,
pub max_error_rate: f64,
pub skip_tls_verify: bool,
pub chunked_request_bodies: bool,
}Expand description
Inputs for run_bench — a k6 load test against an external URL.
All fields mirror the CLI flags one-for-one, minus filesystem-only options
(--output, --script-output, --targets-file, etc.) that have no
meaning in a hosted context.
Fields§
§spec_bytes: Vec<u8>§spec_format: SpecFormat§target_url: String§base_path: Option<String>§duration: String§vus: u32§scenario: String§operations: Option<String>§exclude_operations: Option<String>§auth: Option<String>§headers: Option<String>Comma-separated Key:Value,Key2:Value2 header list (matches CLI
--headers semantics — see crate::command::parse_header_string).
threshold_percentile: String§threshold_ms: u64§max_error_rate: f64§skip_tls_verify: bool§chunked_request_bodies: boolTrait Implementations§
Source§impl Clone for CloudBenchInputs
impl Clone for CloudBenchInputs
Source§fn clone(&self) -> CloudBenchInputs
fn clone(&self) -> CloudBenchInputs
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 CloudBenchInputs
impl Debug for CloudBenchInputs
Auto Trait Implementations§
impl Freeze for CloudBenchInputs
impl RefUnwindSafe for CloudBenchInputs
impl Send for CloudBenchInputs
impl Sync for CloudBenchInputs
impl Unpin for CloudBenchInputs
impl UnsafeUnpin for CloudBenchInputs
impl UnwindSafe for CloudBenchInputs
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