pub struct PromotionGate {
pub min_score_delta: i32,
pub max_cost_delta_microusd: Option<i64>,
pub require_all_tests_pass: bool,
pub reject_policy_violations: bool,
pub reject_stale_replay: bool,
}Fields§
§min_score_delta: i32§max_cost_delta_microusd: Option<i64>§require_all_tests_pass: bool§reject_policy_violations: bool§reject_stale_replay: boolImplementations§
Source§impl PromotionGate
impl PromotionGate
pub fn evaluate_candidate( &self, candidate: &TeacherCandidate, ) -> PromotionGateDecision
pub fn evaluate_replay( &self, candidate_id: &str, replay: &StudentReplayResult, ) -> PromotionGateDecision
Trait Implementations§
Source§impl Clone for PromotionGate
impl Clone for PromotionGate
Source§fn clone(&self) -> PromotionGate
fn clone(&self) -> PromotionGate
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 PromotionGate
impl Debug for PromotionGate
Source§impl Default for PromotionGate
impl Default for PromotionGate
Source§impl<'de> Deserialize<'de> for PromotionGate
impl<'de> Deserialize<'de> for PromotionGate
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
impl Eq for PromotionGate
Source§impl PartialEq for PromotionGate
impl PartialEq for PromotionGate
Source§impl Serialize for PromotionGate
impl Serialize for PromotionGate
impl StructuralPartialEq for PromotionGate
Auto Trait Implementations§
impl Freeze for PromotionGate
impl RefUnwindSafe for PromotionGate
impl Send for PromotionGate
impl Sync for PromotionGate
impl Unpin for PromotionGate
impl UnsafeUnpin for PromotionGate
impl UnwindSafe for PromotionGate
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