pub struct BillingAudit {
pub rounds: Vec<BillingRound>,
pub method: String,
pub billed_input: u32,
pub billed_output: u32,
pub honest_input: u32,
pub honest_output: u32,
pub input_ratio: f64,
pub billed_cost_usd: f64,
pub honest_cost_usd: f64,
pub cost_ratio: f64,
pub pricing_source: String,
pub anomalies: Vec<String>,
}Fields§
§rounds: Vec<BillingRound>§method: Stringauthoritative when the endpoint’s own count_tokens answered,
estimated when we fell back to the local heuristic.
billed_input: u32§billed_output: u32§honest_input: u32§honest_output: u32§input_ratio: f64§billed_cost_usd: f64§honest_cost_usd: f64§cost_ratio: f64§pricing_source: String§anomalies: Vec<String>Trait Implementations§
Source§impl Clone for BillingAudit
impl Clone for BillingAudit
Source§fn clone(&self) -> BillingAudit
fn clone(&self) -> BillingAudit
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 BillingAudit
impl Debug for BillingAudit
Source§impl Default for BillingAudit
impl Default for BillingAudit
Source§fn default() -> BillingAudit
fn default() -> BillingAudit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BillingAudit
impl<'de> Deserialize<'de> for BillingAudit
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 BillingAudit
impl RefUnwindSafe for BillingAudit
impl Send for BillingAudit
impl Sync for BillingAudit
impl Unpin for BillingAudit
impl UnsafeUnpin for BillingAudit
impl UnwindSafe for BillingAudit
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