pub struct GoldenCase {
pub id: String,
pub question: String,
pub tags: Vec<String>,
pub match_mode: MatchMode,
pub tolerance: Tolerance,
pub expected: Table,
pub result_kind: ResultKind,
pub verdict_field: Option<String>,
}Fields§
§id: String§question: String§match_mode: MatchMode§tolerance: Tolerance§expected: Table§result_kind: ResultKindSee ResultKind. Defaulted to Table so every pre-existing golden is unaffected.
verdict_field: Option<String>For ResultKind::Verdict cases, which envelope field project_verdict_field projects onto
expected’s single cell: "fresh" (verdict.fresh) or "severity" (the breach severity).
Ignored for ResultKind::Table cases; None on a verdict case defaults to "fresh".
Trait Implementations§
Source§impl Clone for GoldenCase
impl Clone for GoldenCase
Source§impl Debug for GoldenCase
impl Debug for GoldenCase
Source§impl<'de> Deserialize<'de> for GoldenCase
impl<'de> Deserialize<'de> for GoldenCase
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 GoldenCase
impl RefUnwindSafe for GoldenCase
impl Send for GoldenCase
impl Sync for GoldenCase
impl Unpin for GoldenCase
impl UnsafeUnpin for GoldenCase
impl UnwindSafe for GoldenCase
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