pub struct BatchUsageInputTokensDetails {
pub cached_tokens: Option<u64>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 batch 输入 token 明细。
Fields§
§cached_tokens: Option<u64>缓存命中的 token 数。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for BatchUsageInputTokensDetails
impl Clone for BatchUsageInputTokensDetails
Source§fn clone(&self) -> BatchUsageInputTokensDetails
fn clone(&self) -> BatchUsageInputTokensDetails
Returns a duplicate 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 BatchUsageInputTokensDetails
impl Debug for BatchUsageInputTokensDetails
Source§impl Default for BatchUsageInputTokensDetails
impl Default for BatchUsageInputTokensDetails
Source§fn default() -> BatchUsageInputTokensDetails
fn default() -> BatchUsageInputTokensDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchUsageInputTokensDetails
impl<'de> Deserialize<'de> for BatchUsageInputTokensDetails
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
Source§impl PartialEq for BatchUsageInputTokensDetails
impl PartialEq for BatchUsageInputTokensDetails
Source§fn eq(&self, other: &BatchUsageInputTokensDetails) -> bool
fn eq(&self, other: &BatchUsageInputTokensDetails) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BatchUsageInputTokensDetails
impl StructuralPartialEq for BatchUsageInputTokensDetails
Auto Trait Implementations§
impl Freeze for BatchUsageInputTokensDetails
impl RefUnwindSafe for BatchUsageInputTokensDetails
impl Send for BatchUsageInputTokensDetails
impl Sync for BatchUsageInputTokensDetails
impl Unpin for BatchUsageInputTokensDetails
impl UnsafeUnpin for BatchUsageInputTokensDetails
impl UnwindSafe for BatchUsageInputTokensDetails
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.