pub struct RealtimeResponseUsageBuilder(/* private fields */);Expand description
Builder for RealtimeResponseUsage.
Implementations§
Source§impl RealtimeResponseUsageBuilder
impl RealtimeResponseUsageBuilder
pub fn input_token_details( self, value: impl Into<Option<RealtimeResponseUsageInputTokenDetails>>, ) -> Self
pub fn input_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn output_token_details( self, value: impl Into<Option<RealtimeResponseUsageOutputTokenDetails>>, ) -> Self
pub fn output_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn total_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> RealtimeResponseUsage
pub fn build(self) -> RealtimeResponseUsage
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for RealtimeResponseUsageBuilder
impl RefUnwindSafe for RealtimeResponseUsageBuilder
impl Send for RealtimeResponseUsageBuilder
impl Sync for RealtimeResponseUsageBuilder
impl Unpin for RealtimeResponseUsageBuilder
impl UnsafeUnpin for RealtimeResponseUsageBuilder
impl UnwindSafe for RealtimeResponseUsageBuilder
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