pub struct SessionCostTurn {
pub label: String,
pub prompt_tokens: u64,
pub cached_input_tokens: u64,
pub cache_creation_input_tokens: u64,
pub output_tokens: u64,
pub reasoning_output_tokens: u64,
pub total_tokens: u64,
pub prompt_cache_metadata: Option<SessionCostPromptCacheMetadata>,
}Fields§
§label: String§prompt_tokens: u64§cached_input_tokens: u64§cache_creation_input_tokens: u64§output_tokens: u64§reasoning_output_tokens: u64§total_tokens: u64§prompt_cache_metadata: Option<SessionCostPromptCacheMetadata>Trait Implementations§
Source§impl Clone for SessionCostTurn
impl Clone for SessionCostTurn
Source§fn clone(&self) -> SessionCostTurn
fn clone(&self) -> SessionCostTurn
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 SessionCostTurn
impl Debug for SessionCostTurn
impl Eq for SessionCostTurn
Source§impl PartialEq for SessionCostTurn
impl PartialEq for SessionCostTurn
Source§impl Serialize for SessionCostTurn
impl Serialize for SessionCostTurn
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 SessionCostTurn
Auto Trait Implementations§
impl Freeze for SessionCostTurn
impl RefUnwindSafe for SessionCostTurn
impl Send for SessionCostTurn
impl Sync for SessionCostTurn
impl Unpin for SessionCostTurn
impl UnsafeUnpin for SessionCostTurn
impl UnwindSafe for SessionCostTurn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.