pub struct Provenance {
pub commit: Option<String>,
pub dirty: bool,
pub build_profile: String,
pub os: String,
pub arch: String,
pub version: String,
pub registry_fingerprint: String,
pub host: String,
pub load: String,
}Expand description
The provenance a run carries.
Fields§
§commit: Option<String>Full commit id of HEAD, when known.
dirty: boolWas the work tree dirty?
build_profile: Stringdebug or release.
os: Stringstd::env::consts::OS.
arch: Stringstd::env::consts::ARCH.
version: StringThe executable’s version.
registry_fingerprint: StringThe registry fingerprint of the repository measured.
host: StringThe host that measured: the CPU’s brand string and its logical core count
(Apple M5 Pro/18). Wall-clock numbers are comparable only between runs on the
same host; a baseline recorded elsewhere is reported against, never failed
against. Empty when the host could not be identified (older baselines).
load: StringThe host’s 1-minute load average when the run finished, two decimals (3.41): what
the samples were measured under. A timing verdict is a statement about a machine as
much as about a change, so every finding of a check names it. Empty when the host
does not report one (and in documents recorded before it was kept).
Implementations§
Source§impl Provenance
impl Provenance
Sourcepub fn of(repo: &Repository, registry_fingerprint: &str) -> Self
pub fn of(repo: &Repository, registry_fingerprint: &str) -> Self
This process, this repository.
Sourcepub fn same_host(&self, other: &Provenance) -> bool
pub fn same_host(&self, other: &Provenance) -> bool
Were these two measured on the same host? Unknown hosts never match.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Provenance
impl Debug for Provenance
Source§impl<'de> Deserialize<'de> for Provenance
impl<'de> Deserialize<'de> for Provenance
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>,
impl Eq for Provenance
Source§impl JsonSchema for Provenance
impl JsonSchema for Provenance
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for Provenance
impl PartialEq for Provenance
Source§fn eq(&self, other: &Provenance) -> bool
fn eq(&self, other: &Provenance) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for Provenance
impl Serialize for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.