pub enum BillingDimension {
Tokens,
Duration {
resolution: Option<String>,
},
Images {
quality: Option<String>,
},
}Expand description
The billing dimension for metered and tiered pricing.
Carries optional parameters relevant to that dimension (e.g. video resolution, image quality).
Variants§
Tokens
Token-based billing (LLM text APIs).
Duration
Duration-based billing (video/audio APIs).
Images
Image-count-based billing (image generation APIs).
Trait Implementations§
Source§impl Clone for BillingDimension
impl Clone for BillingDimension
Source§fn clone(&self) -> BillingDimension
fn clone(&self) -> BillingDimension
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 moreSource§impl Debug for BillingDimension
impl Debug for BillingDimension
Source§impl<'de> Deserialize<'de> for BillingDimension
impl<'de> Deserialize<'de> for BillingDimension
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
Source§impl PartialEq for BillingDimension
impl PartialEq for BillingDimension
Source§fn eq(&self, other: &BillingDimension) -> bool
fn eq(&self, other: &BillingDimension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BillingDimension
impl Serialize for BillingDimension
impl StructuralPartialEq for BillingDimension
Auto Trait Implementations§
impl Freeze for BillingDimension
impl RefUnwindSafe for BillingDimension
impl Send for BillingDimension
impl Sync for BillingDimension
impl Unpin for BillingDimension
impl UnsafeUnpin for BillingDimension
impl UnwindSafe for BillingDimension
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