pub struct EconomicsRunList {
pub count: usize,
pub runs: Vec<EconomicsRunView>,
pub diagnostics: Vec<String>,
}Expand description
The answer of economics.runs: the raw facts every metric is computed from.
use majordomus_cli::economics::model::EconomicsRunList;
let l: EconomicsRunList =
serde_json::from_value(serde_json::json!({ "count": 0, "runs": [] })).unwrap();
assert_eq!(l.count, l.runs.len());
assert!(l.diagnostics.is_empty(), "no diagnostics listed means none");Fields§
§count: usizeHow many.
runs: Vec<EconomicsRunView>The runs, sorted by id.
diagnostics: Vec<String>Records that could not be read.
Trait Implementations§
Source§impl Clone for EconomicsRunList
impl Clone for EconomicsRunList
Source§fn clone(&self) -> EconomicsRunList
fn clone(&self) -> EconomicsRunList
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 EconomicsRunList
impl Debug for EconomicsRunList
Source§impl<'de> Deserialize<'de> for EconomicsRunList
impl<'de> Deserialize<'de> for EconomicsRunList
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 EconomicsRunList
impl JsonSchema for EconomicsRunList
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 EconomicsRunList
impl PartialEq for EconomicsRunList
Source§fn eq(&self, other: &EconomicsRunList) -> bool
fn eq(&self, other: &EconomicsRunList) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsRunList
impl Serialize for EconomicsRunList
impl StructuralPartialEq for EconomicsRunList
Auto Trait Implementations§
impl Freeze for EconomicsRunList
impl RefUnwindSafe for EconomicsRunList
impl Send for EconomicsRunList
impl Sync for EconomicsRunList
impl Unpin for EconomicsRunList
impl UnsafeUnpin for EconomicsRunList
impl UnwindSafe for EconomicsRunList
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