pub struct SampleRow {
pub index: usize,
pub issued_ms: f64,
pub settled_ms: f64,
pub outcome: Outcome,
pub generated_tokens: u32,
pub prompt_tokens: u32,
pub ttft_ms: Option<f64>,
pub in_flight_at_start: u32,
}Expand description
PP-7 — one row of a band’s samples[], as it appears in the receipt.
Fields§
§index: usizePosition in issue order.
issued_ms: f64Offset of the request start from the window opening.
settled_ms: f64Offset of the terminal state.
outcome: OutcomeHow it ended.
generated_tokens: u32Server-reported completion tokens.
prompt_tokens: u32Server-reported prompt tokens.
ttft_ms: Option<f64>Time to first token, when the transport streamed.
in_flight_at_start: u32In-flight requests when this one was issued (PP-8).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SampleRow
impl<'de> Deserialize<'de> for SampleRow
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 StructuralPartialEq for SampleRow
Auto Trait Implementations§
impl Freeze for SampleRow
impl RefUnwindSafe for SampleRow
impl Send for SampleRow
impl Sync for SampleRow
impl Unpin for SampleRow
impl UnsafeUnpin for SampleRow
impl UnwindSafe for SampleRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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