pub struct Call<'a> {
pub provider: &'a str,
pub model: &'a str,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost_usd: f64,
}Expand description
A single LLM call to record against the meter.
Fields§
§provider: &'a strProvider name. Free-form; typical values: anthropic, openai,
google, bedrock.
model: &'a strModel id as you call it (need not be normalized).
input_tokens: u64Fresh input tokens billed on this call.
output_tokens: u64Output tokens billed on this call.
cost_usd: f64Pre-computed USD cost for this call.
Trait Implementations§
impl<'a> Copy for Call<'a>
Auto Trait Implementations§
impl<'a> Freeze for Call<'a>
impl<'a> RefUnwindSafe for Call<'a>
impl<'a> Send for Call<'a>
impl<'a> Sync for Call<'a>
impl<'a> Unpin for Call<'a>
impl<'a> UnsafeUnpin for Call<'a>
impl<'a> UnwindSafe for Call<'a>
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