pub struct BenchConfigFile {
pub name: String,
pub cwd: Option<String>,
pub work: Option<u64>,
pub timeout: Option<String>,
pub command: Vec<String>,
pub repeat: Option<u32>,
pub warmup: Option<u32>,
pub metrics: Option<Vec<Metric>>,
pub budgets: Option<BTreeMap<Metric, BudgetOverride>>,
}Fields§
§name: String§cwd: Option<String>§work: Option<u64>§timeout: Option<String>Duration string parseable by humantime, e.g. “2s”.
command: Vec<String>argv vector (no shell parsing).
repeat: Option<u32>Number of measured samples (overrides defaults.repeat).
warmup: Option<u32>Warmup samples excluded from stats (overrides defaults.warmup).
metrics: Option<Vec<Metric>>§budgets: Option<BTreeMap<Metric, BudgetOverride>>Trait Implementations§
Source§impl Clone for BenchConfigFile
impl Clone for BenchConfigFile
Source§fn clone(&self) -> BenchConfigFile
fn clone(&self) -> BenchConfigFile
Returns a duplicate of the value. Read more
1.0.0 · 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 BenchConfigFile
impl Debug for BenchConfigFile
Source§impl<'de> Deserialize<'de> for BenchConfigFile
impl<'de> Deserialize<'de> for BenchConfigFile
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 JsonSchema for BenchConfigFile
impl JsonSchema for BenchConfigFile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BenchConfigFile
impl PartialEq for BenchConfigFile
Source§impl Serialize for BenchConfigFile
impl Serialize for BenchConfigFile
impl StructuralPartialEq for BenchConfigFile
Auto Trait Implementations§
impl Freeze for BenchConfigFile
impl RefUnwindSafe for BenchConfigFile
impl Send for BenchConfigFile
impl Sync for BenchConfigFile
impl Unpin for BenchConfigFile
impl UnsafeUnpin for BenchConfigFile
impl UnwindSafe for BenchConfigFile
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