pub struct ResultDocument {
pub schema: String,
pub finished_at: String,
pub profile: String,
pub provenance: Provenance,
pub results: Vec<BenchmarkResult>,
}Expand description
One run.
Fields§
§schema: Stringmajordomus/benchmark-result/v1.
finished_at: StringWhen the run finished, RFC 3339 UTC. Observed evidence, not a generated artifact.
profile: StringThe profile the run used.
provenance: ProvenanceProvenance.
results: Vec<BenchmarkResult>Every measurement, by key then cache mode.
Implementations§
Source§impl ResultDocument
impl ResultDocument
Sourcepub fn write_local(&self, repo: &Repository) -> Result<PathBuf, Error>
pub fn write_local(&self, repo: &Repository) -> Result<PathBuf, Error>
Write under <local>/benchmarks/<utc>-<profile>.json; returns the path.
Trait Implementations§
Source§impl Clone for ResultDocument
impl Clone for ResultDocument
Source§fn clone(&self) -> ResultDocument
fn clone(&self) -> ResultDocument
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 ResultDocument
impl Debug for ResultDocument
Source§impl<'de> Deserialize<'de> for ResultDocument
impl<'de> Deserialize<'de> for ResultDocument
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 ResultDocument
impl JsonSchema for ResultDocument
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 ResultDocument
impl PartialEq for ResultDocument
Source§fn eq(&self, other: &ResultDocument) -> bool
fn eq(&self, other: &ResultDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResultDocument
impl Serialize for ResultDocument
impl StructuralPartialEq for ResultDocument
Auto Trait Implementations§
impl Freeze for ResultDocument
impl RefUnwindSafe for ResultDocument
impl Send for ResultDocument
impl Sync for ResultDocument
impl Unpin for ResultDocument
impl UnsafeUnpin for ResultDocument
impl UnwindSafe for ResultDocument
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