#[non_exhaustive]pub struct AssertionResult {
pub kind: String,
pub metric: Option<String>,
pub pass: bool,
pub score: f64,
pub weight: f64,
pub reason: String,
pub excluded: bool,
pub judge: Option<Box<JudgeRecord>>,
}Expand description
The result of one assertion, as reported.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringThe assertion type as written (with any not- prefix).
metric: Option<String>§pass: bool§score: f64§weight: f64§reason: String§excluded: boolReported only: not part of the test score, the gate or the metric means.
judge: Option<Box<JudgeRecord>>The judge workflow (path and fingerprint) and its verdict.
Implementations§
Source§impl AssertionResult
impl AssertionResult
Trait Implementations§
Source§impl Clone for AssertionResult
impl Clone for AssertionResult
Source§impl Debug for AssertionResult
impl Debug for AssertionResult
Source§impl<'de> Deserialize<'de> for AssertionResult
impl<'de> Deserialize<'de> for AssertionResult
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
Source§impl PartialEq for AssertionResult
impl PartialEq for AssertionResult
Source§impl Serialize for AssertionResult
impl Serialize for AssertionResult
impl StructuralPartialEq for AssertionResult
Auto Trait Implementations§
impl Forget for AssertionResult
impl Freeze for AssertionResult
impl Move for AssertionResult
impl RefUnwindSafe for AssertionResult
impl Send for AssertionResult
impl Sync for AssertionResult
impl Unpin for AssertionResult
impl UnsafeUnpin for AssertionResult
impl UnwindSafe for AssertionResult
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