#[non_exhaustive]pub struct RunTelemetry {
pub status: String,
pub turns: u64,
pub duration_secs: f64,
pub cost_usd: Option<f64>,
pub tokens: Tokens,
}Expand description
What the level’s run actually did.
Why: #5441 requires terminal status, turns, duration, and cost retained per
level so the next milestone can compare against them.
What: status uses run_task::report’s own vocabulary (success,
partial, deadline_exceeded, …) so it can be cross-checked against the
level’s tcode_report.json rather than trusted.
Test: bakeoff::tests::metadata_status_must_match_the_run_report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: StringTerminal status string, matching tcode_report.json’s status.
turns: u64PM turns consumed.
duration_secs: f64Wall-clock duration of the run.
cost_usd: Option<f64>Summed USD cost, or null when pricing was unavailable.
tokens: TokensToken counters.
Trait Implementations§
Source§impl Clone for RunTelemetry
impl Clone for RunTelemetry
Source§impl Debug for RunTelemetry
impl Debug for RunTelemetry
Source§impl<'de> Deserialize<'de> for RunTelemetry
impl<'de> Deserialize<'de> for RunTelemetry
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
Source§impl PartialEq for RunTelemetry
impl PartialEq for RunTelemetry
Source§impl Serialize for RunTelemetry
impl Serialize for RunTelemetry
impl StructuralPartialEq for RunTelemetry
Auto Trait Implementations§
impl Freeze for RunTelemetry
impl RefUnwindSafe for RunTelemetry
impl Send for RunTelemetry
impl Sync for RunTelemetry
impl Unpin for RunTelemetry
impl UnsafeUnpin for RunTelemetry
impl UnwindSafe for RunTelemetry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreCreates a shared type from an unshared type.