pub enum PickOutcome {
Resolved {
tier: Tier,
source: DecisionSource,
score: f64,
confidence: Option<f64>,
},
ConsultClassifier {
score: f64,
confidence: f64,
default_tier: Tier,
},
}Expand description
Outcome of pick_tier: either a resolved decision, or a signal that the
caller should consult its (impl-specific, async) classifier.
Variants§
Resolved
The tier was decided without the classifier.
Fields
§
source: DecisionSourceWhat produced it.
ConsultClassifier
The scorer was below threshold. The caller runs its classifier; if it
has none (or it fails), fall open to default_tier.
Trait Implementations§
Source§impl Clone for PickOutcome
impl Clone for PickOutcome
Source§fn clone(&self) -> PickOutcome
fn clone(&self) -> PickOutcome
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 PickOutcome
impl Debug for PickOutcome
Source§impl PartialEq for PickOutcome
impl PartialEq for PickOutcome
impl Copy for PickOutcome
impl StructuralPartialEq for PickOutcome
Auto Trait Implementations§
impl Freeze for PickOutcome
impl RefUnwindSafe for PickOutcome
impl Send for PickOutcome
impl Sync for PickOutcome
impl Unpin for PickOutcome
impl UnsafeUnpin for PickOutcome
impl UnwindSafe for PickOutcome
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