pub struct ExemplarResult {
pub rule_id: Option<String>,
pub rule_title: String,
pub rule_kind: ExemplarRuleKind,
pub index: usize,
pub name: String,
pub expect: Expect,
pub actual: Expect,
pub passed: bool,
pub diagnostic: Option<String>,
}Expand description
One asserted exemplar outcome.
Fields§
§rule_id: Option<String>Rule id, when present.
rule_title: StringRule title.
rule_kind: ExemplarRuleKindDetection or correlation.
index: usize0-based index in the source list.
name: StringDisplay name.
expect: ExpectExpected outcome.
actual: ExpectObserved outcome.
passed: boolWhether actual matches expect.
diagnostic: Option<String>Why the assertion failed. Absent on passing exemplars.
Trait Implementations§
Source§impl Clone for ExemplarResult
impl Clone for ExemplarResult
Source§fn clone(&self) -> ExemplarResult
fn clone(&self) -> ExemplarResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExemplarResult
impl Debug for ExemplarResult
impl Eq for ExemplarResult
Source§impl PartialEq for ExemplarResult
impl PartialEq for ExemplarResult
Source§impl Serialize for ExemplarResult
impl Serialize for ExemplarResult
impl StructuralPartialEq for ExemplarResult
Auto Trait Implementations§
impl Freeze for ExemplarResult
impl RefUnwindSafe for ExemplarResult
impl Send for ExemplarResult
impl Sync for ExemplarResult
impl Unpin for ExemplarResult
impl UnsafeUnpin for ExemplarResult
impl UnwindSafe for ExemplarResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.