pub struct CostDetails {
pub input: Option<f64>,
pub output: Option<f64>,
pub total: Option<f64>,
}Expand description
Cost details for LLM generations.
Fields§
§input: Option<f64>Cost of input tokens.
output: Option<f64>Cost of output tokens.
total: Option<f64>Total cost.
Trait Implementations§
Source§impl Clone for CostDetails
impl Clone for CostDetails
Source§fn clone(&self) -> CostDetails
fn clone(&self) -> CostDetails
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 CostDetails
impl Debug for CostDetails
Source§impl Default for CostDetails
impl Default for CostDetails
Source§fn default() -> CostDetails
fn default() -> CostDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostDetails
impl<'de> Deserialize<'de> for CostDetails
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CostDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CostDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CostDetails
impl PartialEq for CostDetails
Source§impl Serialize for CostDetails
impl Serialize for CostDetails
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CostDetails
Auto Trait Implementations§
impl Freeze for CostDetails
impl RefUnwindSafe for CostDetails
impl Send for CostDetails
impl Sync for CostDetails
impl Unpin for CostDetails
impl UnsafeUnpin for CostDetails
impl UnwindSafe for CostDetails
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