pub trait Queryable: Send + Sync {
// Required methods
fn execute(&self) -> Result<Vec<HashMap<String, String>>>;
fn name(&self) -> &str;
// Provided method
fn source(&self) -> Option<&str> { ... }
}Expand description
Trait for query execution
Abstracts the execution of queries and binding extraction. Implementors return bindings (variable name → value) for template rendering.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".