pub struct EconomicsVerdict {
pub publishable: bool,
pub statement: String,
pub unmet: Vec<String>,
}Expand description
The one sentence the evidence allows, and why it allows no stronger one.
use majordomus_cli::economics::model::EconomicsVerdict;
let v: EconomicsVerdict = serde_json::from_value(serde_json::json!({
"publishable": false,
"statement": "No quantitative token claim: 9 valid pairs of the 30 the rule requires.",
"unmet": ["min_valid_pairs: 9 < 30"]
}))
.unwrap();
assert!(!v.publishable);
assert_eq!(v.unmet.len(), 1, "every threshold not met is named");Fields§
§publishable: boolWhether a quantitative total-token claim meets the publication rule.
statement: StringThe strongest statement the evidence supports, generated, never typed.
unmet: Vec<String>Every publication threshold not met.
Trait Implementations§
Source§impl Clone for EconomicsVerdict
impl Clone for EconomicsVerdict
Source§fn clone(&self) -> EconomicsVerdict
fn clone(&self) -> EconomicsVerdict
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 EconomicsVerdict
impl Debug for EconomicsVerdict
Source§impl<'de> Deserialize<'de> for EconomicsVerdict
impl<'de> Deserialize<'de> for EconomicsVerdict
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 EconomicsVerdict
impl JsonSchema for EconomicsVerdict
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 EconomicsVerdict
impl PartialEq for EconomicsVerdict
Source§fn eq(&self, other: &EconomicsVerdict) -> bool
fn eq(&self, other: &EconomicsVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsVerdict
impl Serialize for EconomicsVerdict
impl StructuralPartialEq for EconomicsVerdict
Auto Trait Implementations§
impl Freeze for EconomicsVerdict
impl RefUnwindSafe for EconomicsVerdict
impl Send for EconomicsVerdict
impl Sync for EconomicsVerdict
impl Unpin for EconomicsVerdict
impl UnsafeUnpin for EconomicsVerdict
impl UnwindSafe for EconomicsVerdict
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