pub struct ModelRow {
pub model: Option<String>,
pub pct: Option<f64>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub spend_cents: Option<i32>,
pub tokens: Option<i32>,
}Fields§
§model: Option<String>Model is the model id, e.g. zen5-coder.
pct: Option<f64>Pct is this model’s share of the window’s returned spend, 0..100, one decimal.
provider: Option<String>Provider is who served it.
requests: Option<i32>Requests is how many calls went to this model.
spend_cents: Option<i32>SpendCents is what they cost, in cents.
tokens: Option<i32>Tokens is prompt plus completion tokens over those calls.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelRow
impl<'de> Deserialize<'de> for ModelRow
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
impl StructuralPartialEq for ModelRow
Auto Trait Implementations§
impl Freeze for ModelRow
impl RefUnwindSafe for ModelRow
impl Send for ModelRow
impl Sync for ModelRow
impl Unpin for ModelRow
impl UnsafeUnpin for ModelRow
impl UnwindSafe for ModelRow
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