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