pub enum FitnessRuleType {
ResponseSizeDelta,
NoNewRequiredFields,
FieldCount,
SchemaComplexity,
}Expand description
Type of fitness rule (YAML config format)
Variants§
ResponseSizeDelta
Response size must not increase by more than max_percent_increase
NoNewRequiredFields
No new required fields allowed
FieldCount
Field count must not exceed max_fields
SchemaComplexity
Schema complexity (depth) must not exceed max_depth
Trait Implementations§
Source§impl Clone for FitnessRuleType
impl Clone for FitnessRuleType
Source§fn clone(&self) -> FitnessRuleType
fn clone(&self) -> FitnessRuleType
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 FitnessRuleType
impl Debug for FitnessRuleType
Source§impl<'de> Deserialize<'de> for FitnessRuleType
impl<'de> Deserialize<'de> for FitnessRuleType
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 PartialEq for FitnessRuleType
impl PartialEq for FitnessRuleType
Source§fn eq(&self, other: &FitnessRuleType) -> bool
fn eq(&self, other: &FitnessRuleType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FitnessRuleType
impl Serialize for FitnessRuleType
impl Eq for FitnessRuleType
impl StructuralPartialEq for FitnessRuleType
Auto Trait Implementations§
impl Freeze for FitnessRuleType
impl RefUnwindSafe for FitnessRuleType
impl Send for FitnessRuleType
impl Sync for FitnessRuleType
impl Unpin for FitnessRuleType
impl UnsafeUnpin for FitnessRuleType
impl UnwindSafe for FitnessRuleType
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