pub trait NamedQuery<C> {
// Required methods
fn name(&self) -> &'static str;
fn query_from_json(
&self,
args: &[Value],
context: &C,
) -> Result<(AnyQuery, Vec<Value>), String>;
}Expand description
A named query whose arguments come as JSON, as the server gets them, whatever its types: for a list of an app’s queries, such as a test that checks them against the TS definitions.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".