pub struct Usage {
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
Token usage as returned by Bedrock Converse (inputTokens /
outputTokens).
Fields§
§input_tokens: u64Tokens in the input prompt.
output_tokens: u64Tokens in the model output.
Implementations§
Trait Implementations§
impl Copy for Usage
impl Eq for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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