pub struct CustomConformanceConfig {
pub custom_checks: Vec<CustomCheck>,
}Expand description
Top-level YAML configuration for custom conformance checks
Fields§
§custom_checks: Vec<CustomCheck>List of custom checks to run
Implementations§
Source§impl CustomConformanceConfig
impl CustomConformanceConfig
Sourcepub fn from_file(path: &Path) -> Result<Self>
pub fn from_file(path: &Path) -> Result<Self>
Parse a custom conformance config from a YAML file
Sourcepub fn generate_k6_group(
&self,
base_url: &str,
custom_headers: &[(String, String)],
) -> String
pub fn generate_k6_group( &self, base_url: &str, custom_headers: &[(String, String)], ) -> String
Generate a k6 group('Custom', ...) block for all custom checks.
base_url is the JS expression for the base URL (e.g., "BASE_URL").
custom_headers are additional headers to inject into every request.
Trait Implementations§
Source§impl Debug for CustomConformanceConfig
impl Debug for CustomConformanceConfig
Source§impl<'de> Deserialize<'de> for CustomConformanceConfig
impl<'de> Deserialize<'de> for CustomConformanceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomConformanceConfig
impl RefUnwindSafe for CustomConformanceConfig
impl Send for CustomConformanceConfig
impl Sync for CustomConformanceConfig
impl Unpin for CustomConformanceConfig
impl UnsafeUnpin for CustomConformanceConfig
impl UnwindSafe for CustomConformanceConfig
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