pub struct PromptCacheMissDiagnosticsBody {
pub reason: CacheMissReasonTypeEnum,
pub cache_missed_tokens: u64,
pub comparison_reusable_tokens: Option<u64>,
}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<PromptCacheMissDiagnosticsBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptCacheMissDiagnosticsBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PromptCacheMissDiagnosticsBody
impl Serialize for PromptCacheMissDiagnosticsBody
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 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