pub struct TradeoffAllowance {
pub metric: Metric,
pub probe: String,
pub max_regression: f64,
}Expand description
A local regression allowance used by a tradeoff rule.
Fields§
§metric: MetricMetric whose local regression is capped.
probe: StringProbe name that is allowed to regress within the configured cap.
max_regression: f64Maximum accepted regression as a ratio.
For example, 0.03 allows up to a 3% local regression.
Trait Implementations§
Source§impl Clone for TradeoffAllowance
impl Clone for TradeoffAllowance
Source§fn clone(&self) -> TradeoffAllowance
fn clone(&self) -> TradeoffAllowance
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 TradeoffAllowance
impl Debug for TradeoffAllowance
Source§impl<'de> Deserialize<'de> for TradeoffAllowance
impl<'de> Deserialize<'de> for TradeoffAllowance
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 TradeoffAllowance
impl JsonSchema for TradeoffAllowance
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 TradeoffAllowance
impl PartialEq for TradeoffAllowance
Source§fn eq(&self, other: &TradeoffAllowance) -> bool
fn eq(&self, other: &TradeoffAllowance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TradeoffAllowance
impl Serialize for TradeoffAllowance
impl StructuralPartialEq for TradeoffAllowance
Auto Trait Implementations§
impl Freeze for TradeoffAllowance
impl RefUnwindSafe for TradeoffAllowance
impl Send for TradeoffAllowance
impl Sync for TradeoffAllowance
impl Unpin for TradeoffAllowance
impl UnsafeUnpin for TradeoffAllowance
impl UnwindSafe for TradeoffAllowance
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