pub struct RoutingStatsSnapshot {
pub model_calls: HashMap<String, u64>,
pub model_cost: HashMap<String, f64>,
pub total_requests: u64,
pub total_cost: f64,
}Expand description
Model usage statistics.
Fields§
§model_calls: HashMap<String, u64>Model ID → number of calls.
model_cost: HashMap<String, f64>Model ID → estimated total cost (USD).
total_requests: u64Total number of requests.
total_cost: f64Total estimated cost (USD).
Trait Implementations§
Source§impl Clone for RoutingStatsSnapshot
impl Clone for RoutingStatsSnapshot
Source§fn clone(&self) -> RoutingStatsSnapshot
fn clone(&self) -> RoutingStatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoutingStatsSnapshot
impl Debug for RoutingStatsSnapshot
Source§impl<'de> Deserialize<'de> for RoutingStatsSnapshot
impl<'de> Deserialize<'de> for RoutingStatsSnapshot
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 RoutingStatsSnapshot
impl RefUnwindSafe for RoutingStatsSnapshot
impl Send for RoutingStatsSnapshot
impl Sync for RoutingStatsSnapshot
impl Unpin for RoutingStatsSnapshot
impl UnsafeUnpin for RoutingStatsSnapshot
impl UnwindSafe for RoutingStatsSnapshot
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