pub struct ProviderTokens {
pub input_uncached: u64,
pub cache_read: u64,
pub cache_write_5m: u64,
pub cache_write_1h: u64,
pub output: u64,
}Expand description
Token buckets extracted from a provider usage object. Model, provider,
namespace and service_tier are the caller’s to attach; request_input_tokens
is derived from these by the caller.
Fields§
§input_uncached: u64§cache_read: u64§cache_write_5m: u64§cache_write_1h: u64§output: u64Trait Implementations§
Source§impl Clone for ProviderTokens
impl Clone for ProviderTokens
Source§fn clone(&self) -> ProviderTokens
fn clone(&self) -> ProviderTokens
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderTokens
impl Debug for ProviderTokens
Source§impl Default for ProviderTokens
impl Default for ProviderTokens
Source§fn default() -> ProviderTokens
fn default() -> ProviderTokens
Returns the “default value” for a type. Read more
impl Eq for ProviderTokens
Source§impl PartialEq for ProviderTokens
impl PartialEq for ProviderTokens
Source§fn eq(&self, other: &ProviderTokens) -> bool
fn eq(&self, other: &ProviderTokens) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderTokens
Auto Trait Implementations§
impl Freeze for ProviderTokens
impl RefUnwindSafe for ProviderTokens
impl Send for ProviderTokens
impl Sync for ProviderTokens
impl Unpin for ProviderTokens
impl UnsafeUnpin for ProviderTokens
impl UnwindSafe for ProviderTokens
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