pub struct ArtefactRef {
pub reference: String,
pub detail: Option<String>,
}Expand description
A handle to the evidence behind a verdict.
This is the reference a later slice persists as a first-class event (KRZ-312); it is deliberately just a handle plus optional captured content, not an event itself.
Fields§
§reference: StringStable handle naming where the evidence lives: a repo-relative path, the command line that ran, a session id — whatever re-finds it.
detail: Option<String>Captured content worth keeping verbatim (a failing command’s output,
a validator’s reply excerpt). None when the reference alone is the
evidence.
Implementations§
Trait Implementations§
Source§impl Clone for ArtefactRef
impl Clone for ArtefactRef
Source§fn clone(&self) -> ArtefactRef
fn clone(&self) -> ArtefactRef
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 ArtefactRef
impl Debug for ArtefactRef
impl Eq for ArtefactRef
Source§impl PartialEq for ArtefactRef
impl PartialEq for ArtefactRef
impl StructuralPartialEq for ArtefactRef
Auto Trait Implementations§
impl Freeze for ArtefactRef
impl RefUnwindSafe for ArtefactRef
impl Send for ArtefactRef
impl Sync for ArtefactRef
impl Unpin for ArtefactRef
impl UnsafeUnpin for ArtefactRef
impl UnwindSafe for ArtefactRef
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