pub struct PromptTokensDetails {
pub prompt_tokens: i32,
}
Fields§
§prompt_tokens: i32
命中 Cache 的 Token 数。Context Cache 详情请参见上下文缓存(Context Cache)。
Trait Implementations§
Source§impl Clone for PromptTokensDetails
impl Clone for PromptTokensDetails
Source§fn clone(&self) -> PromptTokensDetails
fn clone(&self) -> PromptTokensDetails
Returns a copy 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 PromptTokensDetails
impl Debug for PromptTokensDetails
Source§impl<'de> Deserialize<'de> for PromptTokensDetails
impl<'de> Deserialize<'de> for PromptTokensDetails
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
Auto Trait Implementations§
impl Freeze for PromptTokensDetails
impl RefUnwindSafe for PromptTokensDetails
impl Send for PromptTokensDetails
impl Sync for PromptTokensDetails
impl Unpin for PromptTokensDetails
impl UnwindSafe for PromptTokensDetails
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