pub struct PromptTokensDetailsBuilder(/* private fields */);Expand description
Builder for PromptTokensDetails.
Implementations§
Source§impl PromptTokensDetailsBuilder
impl PromptTokensDetailsBuilder
pub fn text_tokens(self, value: impl Into<i64>) -> Self
pub fn image_tokens(self, value: impl Into<i64>) -> Self
pub fn cache_write_tokens(self, value: impl Into<i64>) -> Self
pub fn cached_tokens(self, value: impl Into<i64>) -> Self
pub fn audio_tokens(self, value: impl Into<i64>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> PromptTokensDetails
pub fn build(self) -> PromptTokensDetails
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for PromptTokensDetailsBuilder
impl RefUnwindSafe for PromptTokensDetailsBuilder
impl Send for PromptTokensDetailsBuilder
impl Sync for PromptTokensDetailsBuilder
impl Unpin for PromptTokensDetailsBuilder
impl UnsafeUnpin for PromptTokensDetailsBuilder
impl UnwindSafe for PromptTokensDetailsBuilder
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