#[non_exhaustive]pub struct ChunkUsage {
pub completion_tokens: i64,
pub prompt_tokens: i64,
pub total_tokens: i64,
pub completion_tokens_details: Option<Option<ChunkCompletionTokensDetails>>,
pub prompt_tokens_details: Option<Option<ChunkPromptTokensDetails>>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.completion_tokens: i64§prompt_tokens: i64§total_tokens: i64§completion_tokens_details: Option<Option<ChunkCompletionTokensDetails>>§prompt_tokens_details: Option<Option<ChunkPromptTokensDetails>>§rest: RestImplementations§
Source§impl ChunkUsage
impl ChunkUsage
Trait Implementations§
Source§impl Clone for ChunkUsage
impl Clone for ChunkUsage
Source§impl Debug for ChunkUsage
impl Debug for ChunkUsage
Source§impl DeclaredFields for ChunkUsage
impl DeclaredFields for ChunkUsage
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ChunkUsage
impl<'de> Deserialize<'de> for ChunkUsage
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 ChunkUsage
impl PartialEq for ChunkUsage
Source§impl Serialize for ChunkUsage
impl Serialize for ChunkUsage
impl StructuralPartialEq for ChunkUsage
Auto Trait Implementations§
impl Freeze for ChunkUsage
impl RefUnwindSafe for ChunkUsage
impl Send for ChunkUsage
impl Sync for ChunkUsage
impl Unpin for ChunkUsage
impl UnsafeUnpin for ChunkUsage
impl UnwindSafe for ChunkUsage
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