pub struct Usage {
pub input_tokens: Option<u64>,
pub output_tokens: Option<u64>,
pub nano_aiu: Option<f64>,
}Expand description
What the SDK reported for the last request. Every field is optional: a missing counter is omitted rather than invented, and this is never a remaining credit balance.
Fields§
§input_tokens: Option<u64>§output_tokens: Option<u64>§nano_aiu: Option<f64>Cost in nano-AI units, as copilotUsage.totalNanoAiu reports it.
Trait Implementations§
impl Copy for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Forget for Usage
impl Freeze for Usage
impl Move 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