pub struct Baseline {
pub completion_rate: Option<f64>,
pub validation_pass_rate: Option<f64>,
pub cost_usd: Option<f64>,
pub latency_seconds: Option<f64>,
pub iterations_to_success: Option<f64>,
pub measured_at: Option<String>,
}Expand description
The frozen numbers a proposal is measured against.
Every field is optional: a loop that only cares about cost sets only cost. A metric left unset is not compared, which is different from being compared against zero.
Fields§
§completion_rate: Option<f64>Fraction of runs that reached overall success.
validation_pass_rate: Option<f64>Fraction of blocking validations that passed.
cost_usd: Option<f64>Mean cost of a successful run.
latency_seconds: Option<f64>Mean wall-clock of a successful run.
iterations_to_success: Option<f64>Mean iterations to reach overall success.
measured_at: Option<String>When these numbers were measured, as an ISO-8601 date. Recorded rather than enforced: a baseline nobody can date is a baseline nobody can argue with.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Baseline
impl<'de> Deserialize<'de> for Baseline
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 Baseline
impl JsonSchema for Baseline
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
impl UnwindSafe for Baseline
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