pub struct EconomicsSuiteView {
pub id: String,
pub kind: String,
pub version: u32,
pub title: String,
pub model: Option<String>,
pub freshness: EconomicsFreshness,
pub freshness_detail: Option<String>,
pub runs: usize,
pub pairs: EconomicsPairCounts,
pub revisions: Vec<String>,
pub harnesses: Vec<String>,
pub models_reported: Vec<String>,
}Expand description
A suite and the state of its evidence.
use majordomus_cli::economics::model::{
EconomicsFreshness, EconomicsPairCounts, EconomicsSuiteView,
};
let v = EconomicsSuiteView {
id: "pilot".into(), kind: "live".into(), version: 1, title: "Pilot".into(),
model: Some("claude-sonnet-5".into()), freshness: EconomicsFreshness::NoEvidence,
freshness_detail: Some("no run recorded".into()), runs: 0,
pairs: EconomicsPairCounts { declared: 14, ..EconomicsPairCounts::default() },
revisions: vec![], harnesses: vec![], models_reported: vec![],
};
let json = serde_json::to_value(&v).unwrap();
assert_eq!(json["freshness"], "no_evidence");
assert_eq!(json["pairs"]["declared"], 14, "declared pairs show even when none ran");Fields§
§id: StringThe suite.
kind: Stringlive or context.
version: u32Its version.
title: StringA name.
model: Option<String>The model, for a live suite.
freshness: EconomicsFreshnessWhere its evidence stands.
freshness_detail: Option<String>Why, when not current.
runs: usizeRuns recorded.
pairs: EconomicsPairCountsPair counts.
revisions: Vec<String>The revisions the evidence was recorded at.
harnesses: Vec<String>The harness versions that ran it.
models_reported: Vec<String>The models the harness reported.
Trait Implementations§
Source§impl Clone for EconomicsSuiteView
impl Clone for EconomicsSuiteView
Source§fn clone(&self) -> EconomicsSuiteView
fn clone(&self) -> EconomicsSuiteView
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 EconomicsSuiteView
impl Debug for EconomicsSuiteView
Source§impl<'de> Deserialize<'de> for EconomicsSuiteView
impl<'de> Deserialize<'de> for EconomicsSuiteView
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 EconomicsSuiteView
impl JsonSchema for EconomicsSuiteView
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 PartialEq for EconomicsSuiteView
impl PartialEq for EconomicsSuiteView
Source§fn eq(&self, other: &EconomicsSuiteView) -> bool
fn eq(&self, other: &EconomicsSuiteView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsSuiteView
impl Serialize for EconomicsSuiteView
impl StructuralPartialEq for EconomicsSuiteView
Auto Trait Implementations§
impl Freeze for EconomicsSuiteView
impl RefUnwindSafe for EconomicsSuiteView
impl Send for EconomicsSuiteView
impl Sync for EconomicsSuiteView
impl Unpin for EconomicsSuiteView
impl UnsafeUnpin for EconomicsSuiteView
impl UnwindSafe for EconomicsSuiteView
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