pub struct PromotionGateConfig {
pub thresholds: Vec<MetricThreshold>,
pub require_human_approval: bool,
}Expand description
Configuration for a promotion gate: the thresholds the challenger must clear plus whether a human approval is required on top.
Fields§
§thresholds: Vec<MetricThreshold>Metric thresholds, all of which must pass. An empty threshold list is treated as “no automatic signal” and the gate denies by default — a challenger never auto-promotes on zero evidence.
require_human_approval: boolWhen true, clearing the thresholds is necessary but not sufficient:
the gate returns RequiresApproval until a human approval is present.
Trait Implementations§
Source§impl Clone for PromotionGateConfig
impl Clone for PromotionGateConfig
Source§fn clone(&self) -> PromotionGateConfig
fn clone(&self) -> PromotionGateConfig
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 PromotionGateConfig
impl Debug for PromotionGateConfig
Source§impl Default for PromotionGateConfig
impl Default for PromotionGateConfig
Source§impl<'de> Deserialize<'de> for PromotionGateConfig
impl<'de> Deserialize<'de> for PromotionGateConfig
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 PromotionGateConfig
impl PartialEq for PromotionGateConfig
Source§impl Serialize for PromotionGateConfig
impl Serialize for PromotionGateConfig
impl StructuralPartialEq for PromotionGateConfig
Auto Trait Implementations§
impl Freeze for PromotionGateConfig
impl RefUnwindSafe for PromotionGateConfig
impl Send for PromotionGateConfig
impl Sync for PromotionGateConfig
impl Unpin for PromotionGateConfig
impl UnsafeUnpin for PromotionGateConfig
impl UnwindSafe for PromotionGateConfig
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