pub struct Criterion {
pub check_expression: String,
pub check_type: String,
pub description: String,
pub expected_value: String,
pub target_artifact_pattern: Option<String>,
}Expand description
Criterion
Fields§
§check_expression: StringThe check expression (varies by type):
- json_schema: JSON schema object
- regex: Regular expression pattern
- count: JSONPath to count
- http_status: URL to check
- file_exists: Filename pattern
check_type: StringType of check to perform
description: StringHuman-readable criterion description
expected_value: StringExpected value for comparison
target_artifact_pattern: Option<String>Glob pattern matching which artifact this criterion applies to. Null if criterion applies to any artifact.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Criterion
impl<'de> Deserialize<'de> for Criterion
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 Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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