pub struct InvariantLedgerEntry<R> {
pub rule_id: R,
pub invariant_id: Option<String>,
pub expected_fact: String,
pub observed_fact: String,
pub status: InvariantStatus,
pub evidence_ids: Vec<EvidenceId>,
pub declared_waiver: Option<WaiverId>,
}Expand description
One inspectable invariant result.
Fields§
§rule_id: RStable rule identity.
invariant_id: Option<String>Stable invariant identity when the caller exposes one.
expected_fact: StringHuman-readable expected fact.
observed_fact: StringHuman-readable observed fact.
status: InvariantStatusClassified invariant status.
evidence_ids: Vec<EvidenceId>Stable evidence items supporting the observation.
declared_waiver: Option<WaiverId>Explicit declared waiver, if any.
Trait Implementations§
Source§impl<R: Clone> Clone for InvariantLedgerEntry<R>
impl<R: Clone> Clone for InvariantLedgerEntry<R>
Source§fn clone(&self) -> InvariantLedgerEntry<R>
fn clone(&self) -> InvariantLedgerEntry<R>
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<R: Debug> Debug for InvariantLedgerEntry<R>
impl<R: Debug> Debug for InvariantLedgerEntry<R>
impl<R: Eq> Eq for InvariantLedgerEntry<R>
Source§impl<R: PartialEq> PartialEq for InvariantLedgerEntry<R>
impl<R: PartialEq> PartialEq for InvariantLedgerEntry<R>
impl<R: PartialEq> StructuralPartialEq for InvariantLedgerEntry<R>
Auto Trait Implementations§
impl<R> Freeze for InvariantLedgerEntry<R>where
R: Freeze,
impl<R> RefUnwindSafe for InvariantLedgerEntry<R>where
R: RefUnwindSafe,
impl<R> Send for InvariantLedgerEntry<R>where
R: Send,
impl<R> Sync for InvariantLedgerEntry<R>where
R: Sync,
impl<R> Unpin for InvariantLedgerEntry<R>where
R: Unpin,
impl<R> UnsafeUnpin for InvariantLedgerEntry<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for InvariantLedgerEntry<R>where
R: UnwindSafe,
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