pub struct Judgement {
pub state: ProofState,
pub changed: Vec<String>,
pub detail: Option<String>,
}Expand description
One verdict, with what it rests on.
use majordomus_cli::evidence::freshness::Judgement;
use majordomus_cli::evidence::ProofState;
let j = Judgement {
state: ProofState::Stale,
changed: vec!["lib/alpha.sh".into()],
detail: None,
};
assert!(j.state.passing(), "a stale pass is still a pass");Fields§
§state: ProofStateThe state.
changed: Vec<String>The declared inputs that changed since the run, in the route’s own order, when they
are what made it stale.
detail: Option<String>Why, in a sentence, when the state alone does not say.
Trait Implementations§
impl Eq for Judgement
impl StructuralPartialEq for Judgement
Auto Trait Implementations§
impl Freeze for Judgement
impl RefUnwindSafe for Judgement
impl Send for Judgement
impl Sync for Judgement
impl Unpin for Judgement
impl UnsafeUnpin for Judgement
impl UnwindSafe for Judgement
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.