pub trait QueryOverlay {
// Required methods
fn records(&self) -> &HashMap<String, HaysonRecord>;
fn deleted(&self) -> &HashSet<String>;
fn candidates_for(&self, field: &str, encoded: &str) -> OverlayCandidates;
}Expand description
The unit-of-work overlay a query is planned through — the txn/ side of the extension point
RecordSource names. Kept as a trait here so query/ stays below txn/ in the layering.
Required Methods§
Sourcefn records(&self) -> &HashMap<String, HaysonRecord>
fn records(&self) -> &HashMap<String, HaysonRecord>
Every key the unit stages a value for, in the state the unit will leave it.
fn candidates_for(&self, field: &str, encoded: &str) -> OverlayCandidates
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".