pub struct ThroughputPrediction {
pub predicted_tps: f32,
pub confidence: f32,
pub top_features: Vec<(String, f32)>,
}Expand description
Throughput prediction result
Fields§
§predicted_tps: f32Predicted tokens per second
confidence: f32Confidence (0-1)
top_features: Vec<(String, f32)>Top contributing features
Trait Implementations§
Source§impl Clone for ThroughputPrediction
impl Clone for ThroughputPrediction
Source§fn clone(&self) -> ThroughputPrediction
fn clone(&self) -> ThroughputPrediction
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 ThroughputPrediction
impl Debug for ThroughputPrediction
Source§impl<'de> Deserialize<'de> for ThroughputPrediction
impl<'de> Deserialize<'de> for ThroughputPrediction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThroughputPrediction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThroughputPrediction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ThroughputPrediction
impl Serialize for ThroughputPrediction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ThroughputPrediction
impl RefUnwindSafe for ThroughputPrediction
impl Send for ThroughputPrediction
impl Sync for ThroughputPrediction
impl Unpin for ThroughputPrediction
impl UnsafeUnpin for ThroughputPrediction
impl UnwindSafe for ThroughputPrediction
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