pub struct RunRecord {Show 14 fields
pub contract: String,
pub run: String,
pub op: OpRef,
pub params: BTreeMap<String, ParamValue>,
pub inputs: BTreeMap<String, ContentId>,
pub outputs: BTreeMap<String, ContentId>,
pub by: String,
pub via: String,
pub started: String,
pub ended: Option<String>,
pub status: RunStatus,
pub environment: BTreeMap<String, Value>,
pub metrics: BTreeMap<String, Value>,
pub run_key: RunKey,
}Expand description
Every run of an op (or a pipeline) leaves one (standard §3.2). Appended, never edited: a correction is a new run.
Fields§
§contract: StringThe contract version it was written under (CONTRACT_VERSION).
run: StringIts id.
op: OpRefThe op that ran.
params: BTreeMap<String, ParamValue>Every parameter, defaults filled.
inputs: BTreeMap<String, ContentId>Port → result id (for a source the app reads, the source’s id).
outputs: BTreeMap<String, ContentId>Port → result id.
by: StringWho: a person.
via: StringThrough what: an app, a generated interface, an agent.
started: StringWhen it started (RFC 3339).
ended: Option<String>When it ended (RFC 3339).
status: RunStatusHow it ended.
environment: BTreeMap<String, Value>The runtime’s and the app’s versions, the device, and the run’s options (piece size, read-ahead, threads, upload mode).
metrics: BTreeMap<String, Value>Time per op, bytes read, moved and written; never part of the run key.
run_key: RunKeyWhat decides its result (RunKey::of).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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 JsonSchema for RunRecord
impl JsonSchema for RunRecord
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for RunRecord
Auto Trait Implementations§
impl Forget for RunRecord
impl Freeze for RunRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ParamValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ParamValue)>>: Freeze,
*const LeafNode<String, ContentId> is !null: Freeze,
PhantomData<Box<(String, ContentId)>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ParamValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ParamValue)>>: UnsafeUnpin,
*const LeafNode<String, ContentId> is !null: UnsafeUnpin,
PhantomData<Box<(String, ContentId)>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for RunRecordwhere
RawVecInner: UnwindSafe,
BTreeMap<String, ParamValue>: UnwindSafe,
BTreeMap<String, ContentId>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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