pub struct Usage { /* private fields */ }Expand description
Token usage counts for a completion (mirrors org.mockserver.model.Usage).
Implementations§
Source§impl Usage
impl Usage
Sourcepub fn with_input_tokens(self, input_tokens: i64) -> Self
pub fn with_input_tokens(self, input_tokens: i64) -> Self
Sourcepub fn with_output_tokens(self, output_tokens: i64) -> Self
pub fn with_output_tokens(self, output_tokens: i64) -> Self
Trait Implementations§
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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