pub struct OperationUsage {
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub cost_units: u64,
pub metering: Option<MeteringDetails>,
pub revision: u64,
}Expand description
Latest measurement for one stable Run operation; revision zero is its original fact.
Fields§
§prompt_tokens: u64Prompt tokens measured.
completion_tokens: u64Completion tokens measured.
cost_units: u64Provider-neutral resource weight, never a price.
metering: Option<MeteringDetails>Attribution; absent only for legacy data.
revision: u64Number of accepted corrections to this operation.
Trait Implementations§
Source§impl Clone for OperationUsage
impl Clone for OperationUsage
Source§fn clone(&self) -> OperationUsage
fn clone(&self) -> OperationUsage
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 OperationUsage
impl Debug for OperationUsage
Source§impl<'de> Deserialize<'de> for OperationUsage
impl<'de> Deserialize<'de> for OperationUsage
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 OperationUsage
Source§impl PartialEq for OperationUsage
impl PartialEq for OperationUsage
Source§impl Serialize for OperationUsage
impl Serialize for OperationUsage
impl StructuralPartialEq for OperationUsage
Auto Trait Implementations§
impl Freeze for OperationUsage
impl RefUnwindSafe for OperationUsage
impl Send for OperationUsage
impl Sync for OperationUsage
impl Unpin for OperationUsage
impl UnsafeUnpin for OperationUsage
impl UnwindSafe for OperationUsage
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