pub enum LedgerEvent {
ClaimAdded {
claim_id: String,
source_id: String,
span_id: String,
normalized_claim: String,
},
SupportJudgment {
support_judgment_id: String,
claim_id: String,
evidence_bundle_ref: String,
support_state: SupportState,
method: String,
},
SupportAdmission {
support_admission_receipt_id: String,
claim_id: String,
previous_support_judgment_ref: String,
new_support_judgment_ref: String,
admitted_support_state: SupportState,
},
ContradictionCandidate {
contradiction_id: String,
claim_refs: Vec<String>,
pattern: String,
rationale: String,
},
ContradictionResolved {
contradiction_resolution_receipt_id: String,
contradiction_id: String,
resolution: String,
affected_claim_refs: Vec<String>,
},
EvidenceAttached {
evidence_bundle_id: String,
claim_id: String,
evidence_link_count: usize,
},
BundleExported {
bundle_id: String,
export_receipt_id: String,
output_ref: String,
output_digest: String,
},
ProofDebtConsumed {
budget_id: String,
debit_id: String,
amount_micros: u64,
source: String,
overdrawn: bool,
},
ProofDebtReplenished {
budget_id: String,
credit_id: String,
amount_micros: u64,
source: String,
},
}Expand description
Events that can be appended to the ledger.
Variants§
ClaimAdded
A claim was added to the bundle.
SupportJudgment
A support judgment was assigned to a claim.
Fields
§
support_state: SupportStateSupportAdmission
A support admission was recorded.
Fields
§
admitted_support_state: SupportStateContradictionCandidate
A contradiction candidate was recorded.
ContradictionResolved
A contradiction was resolved.
Fields
EvidenceAttached
An evidence bundle was attached to a claim.
BundleExported
A bundle was exported.
ProofDebtConsumed
Proof-debt budget was consumed.
ProofDebtReplenished
Proof-debt budget was replenished (evidence, admission, or waiver).
Implementations§
Trait Implementations§
Source§impl Clone for LedgerEvent
impl Clone for LedgerEvent
Source§fn clone(&self) -> LedgerEvent
fn clone(&self) -> LedgerEvent
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 LedgerEvent
impl Debug for LedgerEvent
Source§impl<'de> Deserialize<'de> for LedgerEvent
impl<'de> Deserialize<'de> for LedgerEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LedgerEvent
impl Serialize for LedgerEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LedgerEvent
impl RefUnwindSafe for LedgerEvent
impl Send for LedgerEvent
impl Sync for LedgerEvent
impl Unpin for LedgerEvent
impl UnsafeUnpin for LedgerEvent
impl UnwindSafe for LedgerEvent
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