pub struct PricingInfo {
pub id: String,
pub provider: String,
pub display_name: String,
pub input_per_million: f64,
pub output_per_million: f64,
}Expand description
Pricing details for a model.
Fields§
§id: StringModel identifier.
provider: StringUpstream provider.
display_name: StringHuman-readable model name.
input_per_million: f64Cost per million input tokens in USD.
output_per_million: f64Cost per million output tokens in USD.
Trait Implementations§
Source§impl Clone for PricingInfo
impl Clone for PricingInfo
Source§fn clone(&self) -> PricingInfo
fn clone(&self) -> PricingInfo
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 PricingInfo
impl Debug for PricingInfo
Source§impl<'de> Deserialize<'de> for PricingInfo
impl<'de> Deserialize<'de> for PricingInfo
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 PricingInfo
impl RefUnwindSafe for PricingInfo
impl Send for PricingInfo
impl Sync for PricingInfo
impl Unpin for PricingInfo
impl UnsafeUnpin for PricingInfo
impl UnwindSafe for PricingInfo
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