pub struct ModelPricing { /* private fields */ }
Expand description
Model pricing information
Implementations§
Source§impl ModelPricing
impl ModelPricing
Sourcepub fn get_price(&self, model: &str) -> &ModelPrice
pub fn get_price(&self, model: &str) -> &ModelPrice
Get pricing for a model
Sourcepub fn set_price(&mut self, model: &str, price: ModelPrice)
pub fn set_price(&mut self, model: &str, price: ModelPrice)
Set pricing for a model
Trait Implementations§
Source§impl Clone for ModelPricing
impl Clone for ModelPricing
Source§fn clone(&self) -> ModelPricing
fn clone(&self) -> ModelPricing
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 moreAuto Trait Implementations§
impl Freeze for ModelPricing
impl RefUnwindSafe for ModelPricing
impl Send for ModelPricing
impl Sync for ModelPricing
impl Unpin for ModelPricing
impl UnwindSafe for ModelPricing
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