pub struct Receipt {
pub stages: Vec<Stage>,
}Expand description
A receipt: one entry per stage in STAGES, in order. Verified only when every stage passed.
Fields§
§stages: Vec<Stage>Implementations§
Source§impl Receipt
impl Receipt
pub fn stage(&self, name: &str) -> Option<&Stage>
pub fn set( &mut self, name: &str, status: StageStatus, detail: impl Into<String>, )
Sourcepub fn set_with_code(
&mut self,
name: &str,
status: StageStatus,
code: &str,
detail: impl Into<String>,
)
pub fn set_with_code( &mut self, name: &str, status: StageStatus, code: &str, detail: impl Into<String>, )
Receipt::set with the machine-readable reason.
pub fn status(&self, name: &str) -> StageStatus
pub fn verified(&self) -> bool
Sourcepub fn replayed(&self) -> bool
pub fn replayed(&self) -> bool
Every stage a replay establishes passed. Not the same as Receipt::verified: a replay
establishes everything except that the pinned Lean accepted the source, which only the
producing run observes.
Sourcepub fn first_failure(&self) -> Option<&Stage>
pub fn first_failure(&self) -> Option<&Stage>
The first stage that failed, in stage order.
Trait Implementations§
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnsafeUnpin for Receipt
impl UnwindSafe for Receipt
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