pub struct K6ScriptTemplateData {Show 13 fields
pub base_url: String,
pub stages: Vec<K6StageData>,
pub operations: Vec<K6OperationData>,
pub threshold_percentile: String,
pub threshold_ms: u64,
pub max_error_rate: f64,
pub scenario_name: String,
pub skip_tls_verify: bool,
pub has_dynamic_values: bool,
pub dynamic_imports: Vec<String>,
pub dynamic_globals: Vec<String>,
pub security_testing_enabled: bool,
pub has_custom_headers: bool,
}Expand description
Typed template data for k6_script.hbs.
Every field referenced by {{variable}} or {{#if flag}} in the template
is a required field here, so the compiler prevents the Issue-#79 class of
bugs (template rendered with missing data).
Fields§
§base_url: String§stages: Vec<K6StageData>§operations: Vec<K6OperationData>§threshold_percentile: String§threshold_ms: u64§max_error_rate: f64§scenario_name: String§skip_tls_verify: bool§has_dynamic_values: bool§dynamic_imports: Vec<String>§dynamic_globals: Vec<String>§security_testing_enabled: bool§has_custom_headers: boolTrait Implementations§
Source§impl Clone for K6ScriptTemplateData
impl Clone for K6ScriptTemplateData
Source§fn clone(&self) -> K6ScriptTemplateData
fn clone(&self) -> K6ScriptTemplateData
Returns a duplicate of the value. Read more
1.0.0 · 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 K6ScriptTemplateData
impl Debug for K6ScriptTemplateData
Auto Trait Implementations§
impl Freeze for K6ScriptTemplateData
impl RefUnwindSafe for K6ScriptTemplateData
impl Send for K6ScriptTemplateData
impl Sync for K6ScriptTemplateData
impl Unpin for K6ScriptTemplateData
impl UnsafeUnpin for K6ScriptTemplateData
impl UnwindSafe for K6ScriptTemplateData
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