pub struct InsertTaskMetric<'a> {Show 17 fields
pub repo: &'a str,
pub task_id: &'a str,
pub agent: &'a str,
pub model: Option<&'a str>,
pub complexity: Option<&'a str>,
pub outcome: &'a str,
pub duration_seconds: f64,
pub started_at: &'a DateTime<Utc>,
pub completed_at: &'a DateTime<Utc>,
pub attempts: i32,
pub files_changed: i32,
pub error_type: Option<&'a str>,
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub input_cost_usd: Option<f64>,
pub output_cost_usd: Option<f64>,
pub total_cost_usd: Option<f64>,
}Expand description
Parameters for inserting a new task metric record.
Fields§
§repo: &'a str§task_id: &'a str§agent: &'a str§model: Option<&'a str>§complexity: Option<&'a str>§outcome: &'a str§duration_seconds: f64§started_at: &'a DateTime<Utc>§completed_at: &'a DateTime<Utc>§attempts: i32§files_changed: i32§error_type: Option<&'a str>§input_tokens: Option<i64>§output_tokens: Option<i64>§input_cost_usd: Option<f64>§output_cost_usd: Option<f64>§total_cost_usd: Option<f64>Trait Implementations§
Source§impl<'a> Clone for InsertTaskMetric<'a>
impl<'a> Clone for InsertTaskMetric<'a>
Auto Trait Implementations§
impl<'a> Freeze for InsertTaskMetric<'a>
impl<'a> RefUnwindSafe for InsertTaskMetric<'a>
impl<'a> Send for InsertTaskMetric<'a>
impl<'a> Sync for InsertTaskMetric<'a>
impl<'a> Unpin for InsertTaskMetric<'a>
impl<'a> UnsafeUnpin for InsertTaskMetric<'a>
impl<'a> UnwindSafe for InsertTaskMetric<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more