pub struct ReceiptDiff {
pub baseline_hash: String,
pub target_hash: String,
pub computed_at: DateTime<Utc>,
pub benchmark_diffs: Vec<BenchmarkDiff>,
}Expand description
Comparison result between two benchmark receipts.
Fields§
§baseline_hash: StringReceipt hash of the baseline (first) receipt
target_hash: StringReceipt hash of the target (second) receipt
computed_at: DateTime<Utc>Timestamp of the diff computation
benchmark_diffs: Vec<BenchmarkDiff>Per-benchmark differences
Implementations§
Source§impl ReceiptDiff
impl ReceiptDiff
Sourcepub fn compare(baseline: &BenchmarkReceipt, target: &BenchmarkReceipt) -> Self
pub fn compare(baseline: &BenchmarkReceipt, target: &BenchmarkReceipt) -> Self
Compare two receipts and produce a diff.
Sourcepub fn from_json(bytes: &[u8]) -> Result<Self, QuantEvalError>
pub fn from_json(bytes: &[u8]) -> Result<Self, QuantEvalError>
Deserialize a diff from JSON bytes.
Trait Implementations§
Source§impl Clone for ReceiptDiff
impl Clone for ReceiptDiff
Source§fn clone(&self) -> ReceiptDiff
fn clone(&self) -> ReceiptDiff
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 ReceiptDiff
impl Debug for ReceiptDiff
Source§impl<'de> Deserialize<'de> for ReceiptDiff
impl<'de> Deserialize<'de> for ReceiptDiff
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
Auto Trait Implementations§
impl Freeze for ReceiptDiff
impl RefUnwindSafe for ReceiptDiff
impl Send for ReceiptDiff
impl Sync for ReceiptDiff
impl Unpin for ReceiptDiff
impl UnsafeUnpin for ReceiptDiff
impl UnwindSafe for ReceiptDiff
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