pub struct TestStanding {
pub present: bool,
pub state: IntentEvidenceState,
pub proof: Option<ProofState>,
}Expand description
What one test’s recorded evidence says: whether its source is in the tree at all, and what its latest recorded run came to. A test that is not there cannot settle anything.
use majordomus_cli::intent::{IntentEvidenceState, TestStanding};
let standing = TestStanding {
present: false,
state: IntentEvidenceState::Unresolved,
proof: None,
};
assert!(!standing.present);Fields§
§present: boolWhether the test’s source is in the tree.
state: IntentEvidenceStateThe state of its latest recorded run.
proof: Option<ProofState>The evidence module’s own verdict behind state, when the run was judged by it.
Trait Implementations§
Source§impl Clone for TestStanding
impl Clone for TestStanding
Source§fn clone(&self) -> TestStanding
fn clone(&self) -> TestStanding
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 TestStanding
impl Debug for TestStanding
impl Eq for TestStanding
Source§impl PartialEq for TestStanding
impl PartialEq for TestStanding
Source§fn eq(&self, other: &TestStanding) -> bool
fn eq(&self, other: &TestStanding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestStanding
Auto Trait Implementations§
impl Freeze for TestStanding
impl RefUnwindSafe for TestStanding
impl Send for TestStanding
impl Sync for TestStanding
impl Unpin for TestStanding
impl UnsafeUnpin for TestStanding
impl UnwindSafe for TestStanding
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.