#[non_exhaustive]pub struct Usage {Show 13 fields
pub cache_creation: Option<Option<CacheCreation>>,
pub cache_creation_input_tokens: Option<Option<i64>>,
pub cache_read_input_tokens: Option<Option<i64>>,
pub fallback_credit: Option<Option<FallbackCreditUsage>>,
pub inference_geo: Option<Option<String>>,
pub input_tokens: i64,
pub iterations: Option<Option<Vec<IterationUsage>>>,
pub output_tokens: i64,
pub output_tokens_details: Option<Option<OutputTokensDetails>>,
pub server_tool_use: Option<Option<ServerToolUsage>>,
pub service_tier: Option<Option<ResponseServiceTier>>,
pub speed: Option<Option<Speed>>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cache_creation: Option<Option<CacheCreation>>§cache_creation_input_tokens: Option<Option<i64>>§cache_read_input_tokens: Option<Option<i64>>§fallback_credit: Option<Option<FallbackCreditUsage>>§inference_geo: Option<Option<String>>§input_tokens: i64§iterations: Option<Option<Vec<IterationUsage>>>§output_tokens: i64§output_tokens_details: Option<Option<OutputTokensDetails>>§server_tool_use: Option<Option<ServerToolUsage>>§service_tier: Option<Option<ResponseServiceTier>>§speed: Option<Option<Speed>>§rest: RestImplementations§
Trait Implementations§
Source§impl DeclaredFields for Usage
impl DeclaredFields for Usage
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for Usage
impl<'de> Deserialize<'de> for Usage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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