pub struct ReferencePricing {
pub source: ReferencePricingSource,
pub prompt: Option<Decimal>,
pub completion: Option<Decimal>,
}Expand description
Reference token rates from a separately identified source.
Fields§
§source: ReferencePricingSourceSource of the reference rates.
prompt: Option<Decimal>Reference input price per token in USD.
completion: Option<Decimal>Reference output price per token in USD.
Trait Implementations§
Source§impl Clone for ReferencePricing
impl Clone for ReferencePricing
Auto Trait Implementations§
impl Freeze for ReferencePricing
impl RefUnwindSafe for ReferencePricing
impl Send for ReferencePricing
impl Sync for ReferencePricing
impl Unpin for ReferencePricing
impl UnsafeUnpin for ReferencePricing
impl UnwindSafe for ReferencePricing
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