pub struct AssistantUsageCopilotUsage {
pub token_details: Vec<AssistantUsageCopilotUsageTokenDetail>,
pub total_nano_aiu: f64,
}Expand description
Per-request cost and usage data from the CAPI copilot_usage response field
Fields§
§token_details: Vec<AssistantUsageCopilotUsageTokenDetail>Itemized token usage breakdown
total_nano_aiu: f64Total cost in nano-AI units for this request
Trait Implementations§
Source§impl Clone for AssistantUsageCopilotUsage
impl Clone for AssistantUsageCopilotUsage
Source§fn clone(&self) -> AssistantUsageCopilotUsage
fn clone(&self) -> AssistantUsageCopilotUsage
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 AssistantUsageCopilotUsage
impl Debug for AssistantUsageCopilotUsage
Source§impl<'de> Deserialize<'de> for AssistantUsageCopilotUsage
impl<'de> Deserialize<'de> for AssistantUsageCopilotUsage
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 AssistantUsageCopilotUsage
impl RefUnwindSafe for AssistantUsageCopilotUsage
impl Send for AssistantUsageCopilotUsage
impl Sync for AssistantUsageCopilotUsage
impl Unpin for AssistantUsageCopilotUsage
impl UnsafeUnpin for AssistantUsageCopilotUsage
impl UnwindSafe for AssistantUsageCopilotUsage
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