pub struct Scenario {
pub name: String,
pub description: String,
pub tags: Vec<String>,
pub criticality: Criticality,
pub owner: Option<String>,
pub expected: ExpectedResult,
pub budget: BudgetPolicy,
pub samples: u32,
}Expand description
A reproducible compute benchmark.
Fields§
§name: StringStable, hierarchical name, e.g. swap/referral_enabled.
description: StringHuman description of what the scenario exercises.
Free-form tags used for filtering (--tag).
criticality: CriticalityHow critical the scenario is.
owner: Option<String>Optional owner (team or person) for triage.
expected: ExpectedResultExpected outcome.
budget: BudgetPolicyThe budget policy applied to this scenario.
samples: u32How many samples to take when measuring (>= 1).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scenario
impl<'de> Deserialize<'de> for Scenario
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 Scenario
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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