pub struct OutputUsage { /* private fields */ }Implementations§
Source§impl OutputUsage
impl OutputUsage
pub fn citation_tokens<T>(self, value: T) -> Self
pub fn completion_tokens<T>(self, value: T) -> Self
pub fn cost<T>(self, value: T) -> Self
pub fn num_search_queries<T>(self, value: T) -> Self
pub fn prompt_tokens<T>(self, value: T) -> Self
pub fn reasoning_tokens<T>(self, value: T) -> Self
pub fn search_context_size<T>(self, value: T) -> Self
pub fn total_tokens<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for OutputUsage
impl Clone for OutputUsage
Source§impl Debug for OutputUsage
impl Debug for OutputUsage
Source§impl Default for OutputUsage
impl Default for OutputUsage
Source§impl From<OutputUsage> for OutputUsage
impl From<OutputUsage> for OutputUsage
Source§fn from(value: OutputUsage) -> Self
fn from(value: OutputUsage) -> Self
Converts to this type from the input type.
Source§impl TryFrom<OutputUsage> for OutputUsage
impl TryFrom<OutputUsage> for OutputUsage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OutputUsage) -> Result<Self, ConversionError>
fn try_from(value: OutputUsage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for OutputUsage
impl Freeze for OutputUsage
impl Move for OutputUsage
impl RefUnwindSafe for OutputUsage
impl Send for OutputUsage
impl Sync for OutputUsage
impl Unpin for OutputUsage
impl UnsafeUnpin for OutputUsagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for OutputUsage
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