pub struct PromptCacheMissDiagnosticsBody {
pub reason: CacheMissReasonTypeEnum,
pub cache_missed_tokens: u64,
pub comparison_reusable_tokens: Option<u64>,
}Available on crate feature
response-types only.Fields§
§reason: CacheMissReasonTypeEnumThe reason prompt cache reuse did not occur.
cache_missed_tokens: u64The estimated number of input tokens affected after the first detected divergence.
comparison_reusable_tokens: Option<u64>The raw token count of the reusable prefix in the compared response.
Trait Implementations§
Source§impl Clone for PromptCacheMissDiagnosticsBody
impl Clone for PromptCacheMissDiagnosticsBody
Source§fn clone(&self) -> PromptCacheMissDiagnosticsBody
fn clone(&self) -> PromptCacheMissDiagnosticsBody
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<'de> Deserialize<'de> for PromptCacheMissDiagnosticsBody
impl<'de> Deserialize<'de> for PromptCacheMissDiagnosticsBody
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
impl StructuralPartialEq for PromptCacheMissDiagnosticsBody
Auto Trait Implementations§
impl Freeze for PromptCacheMissDiagnosticsBody
impl RefUnwindSafe for PromptCacheMissDiagnosticsBody
impl Send for PromptCacheMissDiagnosticsBody
impl Sync for PromptCacheMissDiagnosticsBody
impl Unpin for PromptCacheMissDiagnosticsBody
impl UnsafeUnpin for PromptCacheMissDiagnosticsBody
impl UnwindSafe for PromptCacheMissDiagnosticsBody
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