pub struct EconomicsRunView {
pub id: String,
pub suite: String,
pub task: String,
pub variant: String,
pub repetition: u32,
pub model: String,
pub revision: String,
pub completed: bool,
pub checks: Vec<EconomicsCheck>,
pub sessions: usize,
pub usage: Option<EconomicsUsage>,
pub path: String,
}Expand description
One run in brief, with its derived totals.
use majordomus_cli::economics::model::EconomicsRunView;
let v: EconomicsRunView = serde_json::from_value(serde_json::json!({
"id": "vat-rounding--majordomus--r1", "suite": "pilot", "task": "vat-rounding",
"variant": "majordomus", "repetition": 1, "model": "claude-sonnet-5",
"revision": "8d37d011ef", "completed": false, "checks": [], "sessions": 1,
"path": ".ai/repo/benchmarks/economics/runs/pilot/vat-rounding--majordomus--r1.json"
}))
.unwrap();
assert!(v.usage.is_none(), "a run whose provider reported no usage has no totals");
assert!(v.path.ends_with(&format!("{}.json", v.id)));Fields§
§id: StringThe run’s id.
suite: StringThe suite.
task: StringThe task.
variant: StringThe variant.
repetition: u32The repetition.
model: StringThe model requested.
revision: StringThe revision.
completed: boolWhether every success gate passed.
checks: Vec<EconomicsCheck>Each gate’s verdict.
sessions: usizeSessions.
usage: Option<EconomicsUsage>Totals, when the provider reported usage.
path: StringWhere the raw record is.
Trait Implementations§
Source§impl Clone for EconomicsRunView
impl Clone for EconomicsRunView
Source§fn clone(&self) -> EconomicsRunView
fn clone(&self) -> EconomicsRunView
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 EconomicsRunView
impl Debug for EconomicsRunView
Source§impl<'de> Deserialize<'de> for EconomicsRunView
impl<'de> Deserialize<'de> for EconomicsRunView
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 EconomicsRunView
impl JsonSchema for EconomicsRunView
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 moreSource§impl Ordered for EconomicsRunView
A run in brief orders by its id, and by the path of its record when two share one.
impl Ordered for EconomicsRunView
A run in brief orders by its id, and by the path of its record when two share one.
Source§impl PartialEq for EconomicsRunView
impl PartialEq for EconomicsRunView
Source§fn eq(&self, other: &EconomicsRunView) -> bool
fn eq(&self, other: &EconomicsRunView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsRunView
impl Serialize for EconomicsRunView
impl StructuralPartialEq for EconomicsRunView
Auto Trait Implementations§
impl Freeze for EconomicsRunView
impl RefUnwindSafe for EconomicsRunView
impl Send for EconomicsRunView
impl Sync for EconomicsRunView
impl Unpin for EconomicsRunView
impl UnsafeUnpin for EconomicsRunView
impl UnwindSafe for EconomicsRunView
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