pub struct UsageEvent {
pub uuid: Option<String>,
pub tool_id: String,
pub session_id: Option<String>,
pub project: Option<String>,
pub task_text: Option<String>,
pub outcome: Outcome,
pub duration_ms: Option<i64>,
pub cost_usd: Option<f64>,
pub occurred_at: DateTime<Utc>,
}Fields§
§uuid: Option<String>Mirrors assistant tool_use.id from JSONL. UNIQUE — drives idempotent replay.
tool_id: String§session_id: Option<String>§project: Option<String>§task_text: Option<String>§outcome: Outcome§duration_ms: Option<i64>§cost_usd: Option<f64>§occurred_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for UsageEvent
impl Clone for UsageEvent
Source§fn clone(&self) -> UsageEvent
fn clone(&self) -> UsageEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 UsageEvent
impl Debug for UsageEvent
Source§impl<'de> Deserialize<'de> for UsageEvent
impl<'de> Deserialize<'de> for UsageEvent
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 UsageEvent
impl RefUnwindSafe for UsageEvent
impl Send for UsageEvent
impl Sync for UsageEvent
impl Unpin for UsageEvent
impl UnsafeUnpin for UsageEvent
impl UnwindSafe for UsageEvent
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