pub struct AnthropicStreamUsage {
pub input_tokens: u32,
pub output_tokens: u32,
}Expand description
Anthropic 流式用量
Fields§
§input_tokens: u32§output_tokens: u32Trait Implementations§
Source§impl Clone for AnthropicStreamUsage
impl Clone for AnthropicStreamUsage
Source§fn clone(&self) -> AnthropicStreamUsage
fn clone(&self) -> AnthropicStreamUsage
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 Debug for AnthropicStreamUsage
impl Debug for AnthropicStreamUsage
Source§impl Default for AnthropicStreamUsage
impl Default for AnthropicStreamUsage
Source§fn default() -> AnthropicStreamUsage
fn default() -> AnthropicStreamUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnthropicStreamUsage
impl<'de> Deserialize<'de> for AnthropicStreamUsage
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 AnthropicStreamUsage
impl RefUnwindSafe for AnthropicStreamUsage
impl Send for AnthropicStreamUsage
impl Sync for AnthropicStreamUsage
impl Unpin for AnthropicStreamUsage
impl UnsafeUnpin for AnthropicStreamUsage
impl UnwindSafe for AnthropicStreamUsage
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