pub enum PricingModel {
PerToken,
PerRequest,
PerComputeTime,
Dynamic,
}Expand description
Pricing models for inference
Variants§
PerToken
Price per token (input and output priced separately)
PerRequest
Flat price per request
PerComputeTime
Price based on compute time
Dynamic
Dynamic pricing based on demand
Trait Implementations§
Source§impl Clone for PricingModel
impl Clone for PricingModel
Source§fn clone(&self) -> PricingModel
fn clone(&self) -> PricingModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PricingModel
Source§impl Debug for PricingModel
impl Debug for PricingModel
Source§impl<'de> Deserialize<'de> for PricingModel
impl<'de> Deserialize<'de> for PricingModel
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
impl Eq for PricingModel
Source§impl PartialEq for PricingModel
impl PartialEq for PricingModel
Source§fn eq(&self, other: &PricingModel) -> bool
fn eq(&self, other: &PricingModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PricingModel
impl Serialize for PricingModel
impl StructuralPartialEq for PricingModel
Auto Trait Implementations§
impl Freeze for PricingModel
impl RefUnwindSafe for PricingModel
impl Send for PricingModel
impl Sync for PricingModel
impl Unpin for PricingModel
impl UnsafeUnpin for PricingModel
impl UnwindSafe for PricingModel
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