Struct chainhook_sdk::observer::PredicateEvaluationReport
source · pub struct PredicateEvaluationReport {
pub predicates_evaluated: BTreeMap<String, BTreeSet<BlockIdentifier>>,
pub predicates_triggered: BTreeMap<String, BTreeSet<BlockIdentifier>>,
}Fields§
§predicates_evaluated: BTreeMap<String, BTreeSet<BlockIdentifier>>§predicates_triggered: BTreeMap<String, BTreeSet<BlockIdentifier>>Implementations§
source§impl PredicateEvaluationReport
impl PredicateEvaluationReport
pub fn new() -> PredicateEvaluationReport
pub fn track_evaluation( &mut self, uuid: &str, block_identifier: &BlockIdentifier )
pub fn track_trigger(&mut self, uuid: &str, blocks: &Vec<&BlockIdentifier>)
Trait Implementations§
source§impl Clone for PredicateEvaluationReport
impl Clone for PredicateEvaluationReport
source§fn clone(&self) -> PredicateEvaluationReport
fn clone(&self) -> PredicateEvaluationReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PredicateEvaluationReport
impl Send for PredicateEvaluationReport
impl Sync for PredicateEvaluationReport
impl Unpin for PredicateEvaluationReport
impl UnwindSafe for PredicateEvaluationReport
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.