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