pub trait EnrichmentStrategy: Send + Sync {
// Required method
fn aggregate(&self, original: Exchange, enriched: Exchange) -> Exchange;
}Expand description
Merges the original Exchange with the enriched/polled Exchange in the EIP-7
enrich and pollEnrich verbs.
Distinct from the EIP-22 AggregationStrategy family (which combines many
Exchanges into one); EnrichmentStrategy is always 2→1 (original + enriched).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".