pub struct GateSample {
pub label: String,
pub id: String,
pub timestamp: Option<String>,
pub workload_prefixes: Vec<String>,
pub sample_index: Option<usize>,
pub backends_by_workload: BTreeMap<String, Vec<String>>,
pub metrics: BTreeMap<String, f64>,
}Expand description
A single fixture run entry, normalized for gate consumption.
Fields§
§label: String§id: String§timestamp: Option<String>§workload_prefixes: Vec<String>Fixture workload prefix discovered in this sample (e.g. real,
full_projection). A single sample can carry one or more workloads.
sample_index: Option<usize>Sample index parsed from the run id (...sample-3 → 3). Falls back
to None when the id does not encode an index.
backends_by_workload: BTreeMap<String, Vec<String>>Backends present for each workload prefix (deduplicated, sorted).
metrics: BTreeMap<String, f64>All numeric metrics, keyed by the original fixture metric key.
Trait Implementations§
Source§impl Clone for GateSample
impl Clone for GateSample
Source§fn clone(&self) -> GateSample
fn clone(&self) -> GateSample
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 GateSample
impl Debug for GateSample
Source§impl PartialEq for GateSample
impl PartialEq for GateSample
Source§impl Serialize for GateSample
impl Serialize for GateSample
impl StructuralPartialEq for GateSample
Auto Trait Implementations§
impl Freeze for GateSample
impl RefUnwindSafe for GateSample
impl Send for GateSample
impl Sync for GateSample
impl Unpin for GateSample
impl UnsafeUnpin for GateSample
impl UnwindSafe for GateSample
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