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
SupportJudgment
Fields
§
support_state: SupportStateSupportAdmission
Fields
§
admitted_support_state: SupportStateContradictionCandidate
ContradictionResolved
Fields
EvidenceAttached
BundleExported
ProofDebtConsumed
ProofDebtReplenished
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<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 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