pub struct CandidatePolicy {
pub ladder: Vec<String>,
pub serve_threshold: Option<f64>,
}Expand description
A candidate routing policy to evaluate against logged traffic.
Parsed from a standard firstpass.toml — the candidate is an ordinary config file; we
extract the first route’s ladder and escalation.serve_threshold.
Fields§
§ladder: Vec<String>Model ladder, cheapest first (e.g. "anthropic/claude-haiku-4-5").
serve_threshold: Option<f64>Conformal serve threshold. None → serve when verdict is Pass.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CandidatePolicy
impl RefUnwindSafe for CandidatePolicy
impl Send for CandidatePolicy
impl Sync for CandidatePolicy
impl Unpin for CandidatePolicy
impl UnsafeUnpin for CandidatePolicy
impl UnwindSafe for CandidatePolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.