pub struct CostModel {
pub input_price_per_m: f64,
pub output_price_per_m: f64,
pub avg_verbose_output_per_call: u64,
pub avg_concise_output_per_call: u64,
}Fields§
§input_price_per_m: f64§output_price_per_m: f64§avg_verbose_output_per_call: u64§avg_concise_output_per_call: u64Implementations§
Source§impl CostModel
impl CostModel
pub fn calculate(&self, store: &StatsStore) -> CostBreakdown
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CostModel
impl RefUnwindSafe for CostModel
impl Send for CostModel
impl Sync for CostModel
impl Unpin for CostModel
impl UnsafeUnpin for CostModel
impl UnwindSafe for CostModel
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