pub struct QualityGatesSchemaConfig {
pub enabled: bool,
pub profile: String,
pub fail_on_violation: bool,
pub custom_gates: Vec<QualityGateEntry>,
}Expand description
Quality gates configuration for pass/fail thresholds on generation runs.
quality_gates:
enabled: true
profile: strict # strict, default, lenient, custom
fail_on_violation: true
custom_gates:
- name: benford_compliance
metric: benford_mad
threshold: 0.015
comparison: lteFields§
§enabled: boolEnable quality gate evaluation.
profile: StringGate profile: “strict”, “default”, “lenient”, or “custom”.
fail_on_violation: boolWhether to fail the generation on gate violations.
custom_gates: Vec<QualityGateEntry>Custom gate definitions (used when profile = “custom”).
Trait Implementations§
Source§impl Clone for QualityGatesSchemaConfig
impl Clone for QualityGatesSchemaConfig
Source§fn clone(&self) -> QualityGatesSchemaConfig
fn clone(&self) -> QualityGatesSchemaConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 QualityGatesSchemaConfig
impl Debug for QualityGatesSchemaConfig
Source§impl Default for QualityGatesSchemaConfig
impl Default for QualityGatesSchemaConfig
Source§impl<'de> Deserialize<'de> for QualityGatesSchemaConfig
impl<'de> Deserialize<'de> for QualityGatesSchemaConfig
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
Auto Trait Implementations§
impl Freeze for QualityGatesSchemaConfig
impl RefUnwindSafe for QualityGatesSchemaConfig
impl Send for QualityGatesSchemaConfig
impl Sync for QualityGatesSchemaConfig
impl Unpin for QualityGatesSchemaConfig
impl UnwindSafe for QualityGatesSchemaConfig
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