pub struct ScoreConfig {
pub window_size: usize,
pub decay_period_secs: u64,
pub baseline_score: f64,
pub availability_weight: f64,
pub latency_weight: f64,
pub quality_weight: f64,
pub cost_weight: f64,
pub good_ttft_ms: u64,
pub acceptable_ttft_ms: u64,
pub good_tps: f64,
}Fields§
§window_size: usize§decay_period_secs: u64§baseline_score: f64§availability_weight: f64§latency_weight: f64§quality_weight: f64§cost_weight: f64§good_ttft_ms: u64§acceptable_ttft_ms: u64§good_tps: f64Trait Implementations§
Source§impl Clone for ScoreConfig
impl Clone for ScoreConfig
Source§fn clone(&self) -> ScoreConfig
fn clone(&self) -> ScoreConfig
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 ScoreConfig
impl Debug for ScoreConfig
Source§impl Default for ScoreConfig
impl Default for ScoreConfig
Source§impl<'de> Deserialize<'de> for ScoreConfig
impl<'de> Deserialize<'de> for ScoreConfig
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
Auto Trait Implementations§
impl Freeze for ScoreConfig
impl RefUnwindSafe for ScoreConfig
impl Send for ScoreConfig
impl Sync for ScoreConfig
impl Unpin for ScoreConfig
impl UnsafeUnpin for ScoreConfig
impl UnwindSafe for ScoreConfig
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