pub struct Score {
pub p_success: f32,
pub latency_ms: f32,
pub credits: f32,
pub support: f32,
}Expand description
A scorer’s estimate for one candidate.
A NaN in any field means the scorer does not know, and the gate keeps the request as it is.
Fields§
§p_success: f32The chance the request gets what the caller asked for, zero to one.
latency_ms: f32The expected time for the page, in milliseconds.
credits: f32The expected spend, in credits.
support: f32How much evidence the estimate rests on. Zero is none.
Implementations§
Trait Implementations§
impl Copy for Score
impl StructuralPartialEq for Score
Auto Trait Implementations§
impl Forget for Score
impl Freeze for Score
impl Move for Score
impl RefUnwindSafe for Score
impl Send for Score
impl Sync for Score
impl Unpin for Score
impl UnsafeUnpin for Score
impl UnwindSafe for Score
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