pub struct EconomicsPairing {
pub key: Vec<String>,
pub comparable: Vec<String>,
pub valid: String,
}Expand description
How runs are paired and when a pair is comparable and valid.
use majordomus_cli::economics::model::EconomicsPairing;
let p: EconomicsPairing = serde_json::from_value(serde_json::json!({
"key": ["suite", "task", "repetition"],
"comparable": ["methodology version", "requested model", "fixture digest"],
"valid": "Both runs succeeded and both report provider usage."
}))
.unwrap();
assert!(p.key.iter().any(|k| k == "repetition"), "a repetition pairs with its own number");Fields§
§key: Vec<String>The fields two runs share to be one pair.
comparable: Vec<String>The fields two runs must agree on to be compared at all.
valid: StringWhen a comparable pair is valid.
Trait Implementations§
Source§impl Clone for EconomicsPairing
impl Clone for EconomicsPairing
Source§fn clone(&self) -> EconomicsPairing
fn clone(&self) -> EconomicsPairing
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 EconomicsPairing
impl Debug for EconomicsPairing
Source§impl<'de> Deserialize<'de> for EconomicsPairing
impl<'de> Deserialize<'de> for EconomicsPairing
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 EconomicsPairing
impl JsonSchema for EconomicsPairing
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 EconomicsPairing
impl PartialEq for EconomicsPairing
Source§fn eq(&self, other: &EconomicsPairing) -> bool
fn eq(&self, other: &EconomicsPairing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsPairing
impl Serialize for EconomicsPairing
impl StructuralPartialEq for EconomicsPairing
Auto Trait Implementations§
impl Freeze for EconomicsPairing
impl RefUnwindSafe for EconomicsPairing
impl Send for EconomicsPairing
impl Sync for EconomicsPairing
impl Unpin for EconomicsPairing
impl UnsafeUnpin for EconomicsPairing
impl UnwindSafe for EconomicsPairing
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