pub struct UsageBuilder(/* private fields */);Expand description
Builder for Usage.
Implementations§
Source§impl UsageBuilder
impl UsageBuilder
pub fn prompt_tokens_details( self, value: impl Into<PromptTokensDetails>, ) -> Self
pub fn completion_tokens_details( self, value: impl Into<CompletionTokensDetails>, ) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for UsageBuilder
impl RefUnwindSafe for UsageBuilder
impl Send for UsageBuilder
impl Sync for UsageBuilder
impl Unpin for UsageBuilder
impl UnsafeUnpin for UsageBuilder
impl UnwindSafe for UsageBuilder
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