pub struct RatchetConfig {
pub enabled: bool,
pub mode: RatchetMode,
pub min_improvement: f64,
pub max_tightening: f64,
pub require_significance: bool,
pub allow_metrics: Vec<Metric>,
}Expand description
Configuration for conservative automated budget ratcheting.
Fields§
§enabled: bool§mode: RatchetMode§min_improvement: f64§max_tightening: f64§require_significance: bool§allow_metrics: Vec<Metric>Trait Implementations§
Source§impl Clone for RatchetConfig
impl Clone for RatchetConfig
Source§fn clone(&self) -> RatchetConfig
fn clone(&self) -> RatchetConfig
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 RatchetConfig
impl Debug for RatchetConfig
Source§impl Default for RatchetConfig
impl Default for RatchetConfig
Source§impl<'de> Deserialize<'de> for RatchetConfig
impl<'de> Deserialize<'de> for RatchetConfig
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 RatchetConfig
impl JsonSchema for RatchetConfig
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 RatchetConfig
impl PartialEq for RatchetConfig
Source§fn eq(&self, other: &RatchetConfig) -> bool
fn eq(&self, other: &RatchetConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RatchetConfig
impl Serialize for RatchetConfig
impl StructuralPartialEq for RatchetConfig
Auto Trait Implementations§
impl Freeze for RatchetConfig
impl RefUnwindSafe for RatchetConfig
impl Send for RatchetConfig
impl Sync for RatchetConfig
impl Unpin for RatchetConfig
impl UnsafeUnpin for RatchetConfig
impl UnwindSafe for RatchetConfig
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