pub struct ModelEndpointPricing {
pub request: String,
pub image: String,
pub prompt: String,
pub completion: String,
}Expand description
Endpoint-specific pricing.
Fields§
§request: StringPer-request flat fee.
image: StringPer-image cost.
prompt: StringPer-prompt-token cost.
completion: StringPer-completion-token cost.
Trait Implementations§
Source§impl Clone for ModelEndpointPricing
impl Clone for ModelEndpointPricing
Source§fn clone(&self) -> ModelEndpointPricing
fn clone(&self) -> ModelEndpointPricing
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 ModelEndpointPricing
impl Debug for ModelEndpointPricing
Source§impl Default for ModelEndpointPricing
impl Default for ModelEndpointPricing
Source§fn default() -> ModelEndpointPricing
fn default() -> ModelEndpointPricing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelEndpointPricing
impl<'de> Deserialize<'de> for ModelEndpointPricing
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 ModelEndpointPricing
impl PartialEq for ModelEndpointPricing
Source§impl Serialize for ModelEndpointPricing
impl Serialize for ModelEndpointPricing
impl StructuralPartialEq for ModelEndpointPricing
Auto Trait Implementations§
impl Freeze for ModelEndpointPricing
impl RefUnwindSafe for ModelEndpointPricing
impl Send for ModelEndpointPricing
impl Sync for ModelEndpointPricing
impl Unpin for ModelEndpointPricing
impl UnsafeUnpin for ModelEndpointPricing
impl UnwindSafe for ModelEndpointPricing
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