pub struct UsageV1 {
pub tokens: u64,
pub usd_micros: Option<u64>,
}Expand description
What the work cost the agent’s owner so far (self-reported): model tokens and, if known, US dollars in millionths (integers only, as everything under a signature).
Fields§
§tokens: u64§usd_micros: Option<u64>Trait Implementations§
impl Copy for UsageV1
Source§impl<'de> Deserialize<'de> for UsageV1
impl<'de> Deserialize<'de> for UsageV1
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 UsageV1
impl StructuralPartialEq for UsageV1
Auto Trait Implementations§
impl Freeze for UsageV1
impl RefUnwindSafe for UsageV1
impl Send for UsageV1
impl Sync for UsageV1
impl Unpin for UsageV1
impl UnsafeUnpin for UsageV1
impl UnwindSafe for UsageV1
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