pub struct UsageMeta {
pub input_tokens: u32,
pub output_tokens: u32,
pub model_id: String,
}Expand description
Usage metadata from a generation request.
Fields§
§input_tokens: u32Input token count (if available).
output_tokens: u32Output token count (if available).
model_id: StringModel identifier used.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageMeta
impl<'de> Deserialize<'de> for UsageMeta
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
Auto Trait Implementations§
impl Freeze for UsageMeta
impl RefUnwindSafe for UsageMeta
impl Send for UsageMeta
impl Sync for UsageMeta
impl Unpin for UsageMeta
impl UnwindSafe for UsageMeta
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