pub struct EconomicsHypothesis {
pub id: String,
pub statement: String,
pub status: String,
}Expand description
A statement the benchmark exists to test. Never a result.
use majordomus_cli::economics::model::EconomicsHypothesis;
let h: EconomicsHypothesis = serde_json::from_value(serde_json::json!({
"id": "continuity",
"statement": "Work that spans sessions gains the most.",
"status": "untested"
}))
.unwrap();
assert_eq!(h.status, "untested");
assert_eq!(serde_json::to_value(&h).unwrap()["id"], "continuity");Fields§
§id: StringA slug.
statement: StringWhat is hypothesised.
status: Stringuntested, supported, refuted — set by a person reading the evidence.
Trait Implementations§
Source§impl Clone for EconomicsHypothesis
impl Clone for EconomicsHypothesis
Source§fn clone(&self) -> EconomicsHypothesis
fn clone(&self) -> EconomicsHypothesis
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 EconomicsHypothesis
impl Debug for EconomicsHypothesis
Source§impl<'de> Deserialize<'de> for EconomicsHypothesis
impl<'de> Deserialize<'de> for EconomicsHypothesis
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 EconomicsHypothesis
impl JsonSchema for EconomicsHypothesis
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 EconomicsHypothesis
impl PartialEq for EconomicsHypothesis
Source§fn eq(&self, other: &EconomicsHypothesis) -> bool
fn eq(&self, other: &EconomicsHypothesis) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsHypothesis
impl Serialize for EconomicsHypothesis
impl StructuralPartialEq for EconomicsHypothesis
Auto Trait Implementations§
impl Freeze for EconomicsHypothesis
impl RefUnwindSafe for EconomicsHypothesis
impl Send for EconomicsHypothesis
impl Sync for EconomicsHypothesis
impl Unpin for EconomicsHypothesis
impl UnsafeUnpin for EconomicsHypothesis
impl UnwindSafe for EconomicsHypothesis
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