pub struct PerformanceRecord {
pub format_version: u32,
pub contract_name: String,
pub contract_sha256: String,
pub mode: Mode,
pub reference: Subject,
pub candidate: Subject,
pub client_image: String,
pub client_image_digest: String,
pub host: Host,
pub started_at: String,
pub settings: BTreeMap<String, String>,
pub trials: Vec<Trial>,
}Expand description
Every trial of one comparison and where it came from.
Fields§
§format_version: u32Must be FORMAT_VERSION.
contract_name: StringThe contract’s name.
contract_sha256: StringThe SHA-256 of the contract’s bytes, captured before the first trial.
mode: ModeWhat the candidate was compared against.
reference: SubjectThe reference side.
candidate: SubjectThe candidate side.
client_image: StringThe client image whose jars drove both sides.
client_image_digest: StringThat image’s digest.
host: HostThe host.
started_at: StringWhen the first trial started, RFC 3339 UTC.
settings: BTreeMap<String, String>Every other harness setting, verbatim from provenance.env.
trials: Vec<Trial>Every trial that ran, in no particular order.
Implementations§
Source§impl PerformanceRecord
impl PerformanceRecord
Sourcepub fn from_json(bytes: &[u8]) -> Result<Self, BudgetError>
pub fn from_json(bytes: &[u8]) -> Result<Self, BudgetError>
Read a record from its JSON bytes.
§Errors
Returns BudgetError when the bytes are not a record or declare
another format version.
Trait Implementations§
Source§impl Clone for PerformanceRecord
impl Clone for PerformanceRecord
Source§fn clone(&self) -> PerformanceRecord
fn clone(&self) -> PerformanceRecord
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 PerformanceRecord
impl Debug for PerformanceRecord
Source§impl<'de> Deserialize<'de> for PerformanceRecord
impl<'de> Deserialize<'de> for PerformanceRecord
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 PartialEq for PerformanceRecord
impl PartialEq for PerformanceRecord
Source§impl Serialize for PerformanceRecord
impl Serialize for PerformanceRecord
impl StructuralPartialEq for PerformanceRecord
Auto Trait Implementations§
impl Freeze for PerformanceRecord
impl RefUnwindSafe for PerformanceRecord
impl Send for PerformanceRecord
impl Sync for PerformanceRecord
impl Unpin for PerformanceRecord
impl UnsafeUnpin for PerformanceRecord
impl UnwindSafe for PerformanceRecord
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