pub struct EconomicsOutlierPolicy {
pub rule: String,
pub excluded: Vec<EconomicsExclusion>,
}Expand description
The rule for excluding runs, and the runs it excluded.
use majordomus_cli::economics::model::EconomicsOutlierPolicy;
let o: EconomicsOutlierPolicy =
serde_json::from_value(serde_json::json!({ "rule": "No run is excluded." })).unwrap();
assert!(o.excluded.is_empty(), "a rule with no list excludes nothing");Fields§
§rule: StringThe rule, stated before any analysis.
excluded: Vec<EconomicsExclusion>Every excluded run, with its reason.
Trait Implementations§
Source§impl Clone for EconomicsOutlierPolicy
impl Clone for EconomicsOutlierPolicy
Source§fn clone(&self) -> EconomicsOutlierPolicy
fn clone(&self) -> EconomicsOutlierPolicy
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 EconomicsOutlierPolicy
impl Debug for EconomicsOutlierPolicy
Source§impl<'de> Deserialize<'de> for EconomicsOutlierPolicy
impl<'de> Deserialize<'de> for EconomicsOutlierPolicy
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 EconomicsOutlierPolicy
impl JsonSchema for EconomicsOutlierPolicy
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 EconomicsOutlierPolicy
impl PartialEq for EconomicsOutlierPolicy
Source§fn eq(&self, other: &EconomicsOutlierPolicy) -> bool
fn eq(&self, other: &EconomicsOutlierPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsOutlierPolicy
impl Serialize for EconomicsOutlierPolicy
impl StructuralPartialEq for EconomicsOutlierPolicy
Auto Trait Implementations§
impl Freeze for EconomicsOutlierPolicy
impl RefUnwindSafe for EconomicsOutlierPolicy
impl Send for EconomicsOutlierPolicy
impl Sync for EconomicsOutlierPolicy
impl Unpin for EconomicsOutlierPolicy
impl UnsafeUnpin for EconomicsOutlierPolicy
impl UnwindSafe for EconomicsOutlierPolicy
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