pub struct ProviderCost {
pub name: String,
pub cost_per_1k_tokens: f64,
}Expand description
Cost metadata for a provider.
Fields§
§name: StringProvider name that matches Provider::name().
cost_per_1k_tokens: f64Cost per 1k tokens.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderCost
impl Clone for ProviderCost
Source§fn clone(&self) -> ProviderCost
fn clone(&self) -> ProviderCost
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 ProviderCost
impl Debug for ProviderCost
Source§impl PartialEq for ProviderCost
impl PartialEq for ProviderCost
impl StructuralPartialEq for ProviderCost
Auto Trait Implementations§
impl Freeze for ProviderCost
impl RefUnwindSafe for ProviderCost
impl Send for ProviderCost
impl Sync for ProviderCost
impl Unpin for ProviderCost
impl UnwindSafe for ProviderCost
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