pub struct UsageByModel {
pub model: Option<Option<String>>,
pub input_usage: i32,
pub output_usage: i32,
pub total_usage: i32,
pub count_traces: i32,
pub count_observations: i32,
pub total_cost: f64,
}Expand description
UsageByModel : Daily usage of a given model. Usage corresponds to the unit set for the specific model (e.g. tokens).
Fields§
§model: Option<Option<String>>§input_usage: i32Total number of generation input units (e.g. tokens)
output_usage: i32Total number of generation output units (e.g. tokens)
total_usage: i32Total number of generation total units (e.g. tokens)
count_traces: i32§count_observations: i32§total_cost: f64Total model cost in USD
Implementations§
Trait Implementations§
Source§impl Clone for UsageByModel
impl Clone for UsageByModel
Source§fn clone(&self) -> UsageByModel
fn clone(&self) -> UsageByModel
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 UsageByModel
impl Debug for UsageByModel
Source§impl Default for UsageByModel
impl Default for UsageByModel
Source§fn default() -> UsageByModel
fn default() -> UsageByModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageByModel
impl<'de> Deserialize<'de> for UsageByModel
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
Source§impl PartialEq for UsageByModel
impl PartialEq for UsageByModel
Source§impl Serialize for UsageByModel
impl Serialize for UsageByModel
impl StructuralPartialEq for UsageByModel
Auto Trait Implementations§
impl Freeze for UsageByModel
impl RefUnwindSafe for UsageByModel
impl Send for UsageByModel
impl Sync for UsageByModel
impl Unpin for UsageByModel
impl UnwindSafe for UsageByModel
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