Skip to main content

QueryOverlay

Trait QueryOverlay 

Source
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§

Source

fn records(&self) -> &HashMap<String, HaysonRecord>

Every key the unit stages a value for, in the state the unit will leave it.

Source

fn deleted(&self) -> &HashSet<String>

Every key the unit stages a delete for.

Source

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".

Implementors§