pub struct CountTokensResponseBodyBuilder(/* private fields */);Expand description
Builder for CountTokensResponseBody.
Implementations§
Source§impl CountTokensResponseBodyBuilder
impl CountTokensResponseBodyBuilder
pub fn total_tokens(self, value: impl Into<i64>) -> Self
pub fn cached_content_token_count(self, value: impl Into<i64>) -> Self
pub fn prompt_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn cache_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> CountTokensResponseBody
pub fn build(self) -> CountTokensResponseBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for CountTokensResponseBodyBuilder
impl RefUnwindSafe for CountTokensResponseBodyBuilder
impl Send for CountTokensResponseBodyBuilder
impl Sync for CountTokensResponseBodyBuilder
impl Unpin for CountTokensResponseBodyBuilder
impl UnsafeUnpin for CountTokensResponseBodyBuilder
impl UnwindSafe for CountTokensResponseBodyBuilder
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