pub struct UsageSession {
pub total_cost_usd: f64,
pub total_api_duration_ms: u64,
pub total_duration_ms: u64,
pub total_lines_added: u64,
pub total_lines_removed: u64,
pub model_usage: HashMap<String, UsageModelUsage>,
pub extra: Map<String, Value>,
}Fields§
§total_cost_usd: f64§total_api_duration_ms: u64§total_duration_ms: u64§total_lines_added: u64§total_lines_removed: u64§model_usage: HashMap<String, UsageModelUsage>§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for UsageSession
impl Clone for UsageSession
Source§fn clone(&self) -> UsageSession
fn clone(&self) -> UsageSession
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 UsageSession
impl Debug for UsageSession
Source§impl Default for UsageSession
impl Default for UsageSession
Source§fn default() -> UsageSession
fn default() -> UsageSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageSession
impl<'de> Deserialize<'de> for UsageSession
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 UsageSession
impl RefUnwindSafe for UsageSession
impl Send for UsageSession
impl Sync for UsageSession
impl Unpin for UsageSession
impl UnsafeUnpin for UsageSession
impl UnwindSafe for UsageSession
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