pub struct LiveRun {
pub schema: String,
pub declared_no_spend: Vec<BindingIdentity>,
pub identities: CheckpointBindings,
pub status: RunStatus,
pub stop_reason: Option<String>,
pub probe: ProbeReport,
pub counts: BTreeMap<String, u64>,
pub run_spend: RunSpend,
pub journal_before: SpendSummary,
pub journal_after: SpendSummary,
pub cases: Vec<LiveRunCase>,
pub repeat_reports: Vec<ContentDigest>,
}Expand description
Record-canonical summary of a live run (spec 043, 3.11.4).
Fields§
§schema: String§declared_no_spend: Vec<BindingIdentity>§identities: CheckpointBindings§status: RunStatus§stop_reason: Option<String>§probe: ProbeReport§counts: BTreeMap<String, u64>§run_spend: RunSpend§journal_before: SpendSummary§journal_after: SpendSummary§cases: Vec<LiveRunCase>§repeat_reports: Vec<ContentDigest>Empty until repeat outputs exist.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LiveRun
impl<'de> Deserialize<'de> for LiveRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Document for LiveRun
impl Document for LiveRun
Source§const SCHEMA: &'static str = "rustev.live-run/1"
const SCHEMA: &'static str = "rustev.live-run/1"
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = REPLAY_V1
const LIMITS: ParseLimits = REPLAY_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.impl Eq for LiveRun
impl StructuralPartialEq for LiveRun
Auto Trait Implementations§
impl Freeze for LiveRun
impl RefUnwindSafe for LiveRun
impl Send for LiveRun
impl Sync for LiveRun
impl Unpin for LiveRun
impl UnsafeUnpin for LiveRun
impl UnwindSafe for LiveRun
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