pub struct UsageBuilder(/* private fields */);Expand description
Builder for Usage.
Implementations§
Source§impl UsageBuilder
impl UsageBuilder
pub fn cache_creation(self, value: impl Into<Option<CacheCreation>>) -> Self
pub fn cache_creation_input_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn cache_read_input_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn fallback_credit( self, value: impl Into<Option<FallbackCreditUsage>>, ) -> Self
pub fn inference_geo(self, value: impl Into<Option<String>>) -> Self
pub fn iterations(self, value: impl Into<Option<Vec<IterationUsage>>>) -> Self
pub fn output_tokens_details( self, value: impl Into<Option<OutputTokensDetails>>, ) -> Self
pub fn server_tool_use(self, value: impl Into<Option<ServerToolUsage>>) -> Self
pub fn service_tier(self, value: impl Into<Option<ResponseServiceTier>>) -> Self
pub fn speed(self, value: impl Into<Option<Speed>>) -> 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