pub struct SessionCostPromptCacheTimelineEntry {
pub label: String,
pub prompt_tokens: u64,
pub cached_input_tokens: u64,
pub cache_creation_input_tokens: u64,
pub cached_input_ratio: Option<String>,
pub cache_creation_ratio: Option<String>,
pub prompt_cache_metadata: Option<SessionCostPromptCacheMetadata>,
}Fields§
§label: String§prompt_tokens: u64§cached_input_tokens: u64§cache_creation_input_tokens: u64§cached_input_ratio: Option<String>§cache_creation_ratio: Option<String>§prompt_cache_metadata: Option<SessionCostPromptCacheMetadata>Trait Implementations§
Source§impl Clone for SessionCostPromptCacheTimelineEntry
impl Clone for SessionCostPromptCacheTimelineEntry
Source§fn clone(&self) -> SessionCostPromptCacheTimelineEntry
fn clone(&self) -> SessionCostPromptCacheTimelineEntry
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 Eq for SessionCostPromptCacheTimelineEntry
impl StructuralPartialEq for SessionCostPromptCacheTimelineEntry
Auto Trait Implementations§
impl Freeze for SessionCostPromptCacheTimelineEntry
impl RefUnwindSafe for SessionCostPromptCacheTimelineEntry
impl Send for SessionCostPromptCacheTimelineEntry
impl Sync for SessionCostPromptCacheTimelineEntry
impl Unpin for SessionCostPromptCacheTimelineEntry
impl UnsafeUnpin for SessionCostPromptCacheTimelineEntry
impl UnwindSafe for SessionCostPromptCacheTimelineEntry
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.