pub struct Resolution {
pub at: DateTime<Utc>,
pub outcome: Option<Outcome>,
pub value: Option<f64>,
pub note: Option<String>,
pub resolved_by: Option<ResolvedBy>,
}Expand description
The verdict of reality. Exactly one of outcome (binary) or value
(numeric) is set.
Fields§
§at: DateTime<Utc>§outcome: Option<Outcome>§value: Option<f64>§note: Option<String>§resolved_by: Option<ResolvedBy>Who graded this claim: self (the forecaster said so), auto (a machine
observed it — a test run’s exit status, say), or human.
“Why would I trust a self-graded ledger?” is the first fair objection to this whole idea, and the honest answer is to record which claims did not depend on the forecaster’s word. Absent in older ledgers, and not written when it is the default, so existing files stay byte-identical.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl<'de> Deserialize<'de> for Resolution
impl<'de> Deserialize<'de> for Resolution
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 Forget for Resolution
impl Freeze for Resolution
impl Move for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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