pub struct OracleTraceRecord {
pub verdict: String,
pub reason: Option<String>,
pub agreement_ratio: Option<f32>,
pub trace: ValidatedTrace,
}Expand description
Flat, serialisable snapshot of an oracle verdict plus its full trace — the unit of persistence for the spool and S3.
Produced by super::trace_types::OracleResult::to_record.
§Examples
ⓘ
let record = OracleTraceRecord {
verdict: "golden".into(),
reason: None,
agreement_ratio: None,
trace: validated_trace,
};Fields§
§verdict: StringClassification string: "golden", "consensus",
"unverified", or "failed".
reason: Option<String>Human-readable explanation when the verdict is not golden.
agreement_ratio: Option<f32>Consensus agreement ratio, present only for the
Consensus variant.
trace: ValidatedTraceComplete validated trace snapshot.
Trait Implementations§
Source§impl Clone for OracleTraceRecord
impl Clone for OracleTraceRecord
Source§fn clone(&self) -> OracleTraceRecord
fn clone(&self) -> OracleTraceRecord
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 OracleTraceRecord
impl Debug for OracleTraceRecord
Source§impl<'de> Deserialize<'de> for OracleTraceRecord
impl<'de> Deserialize<'de> for OracleTraceRecord
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 OracleTraceRecord
impl RefUnwindSafe for OracleTraceRecord
impl Send for OracleTraceRecord
impl Sync for OracleTraceRecord
impl Unpin for OracleTraceRecord
impl UnsafeUnpin for OracleTraceRecord
impl UnwindSafe for OracleTraceRecord
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