pub trait EdgedbComposableQuery {
type ArgTypes: EdgedbQueryArgs;
type ReturnType: EdgedbSetValue;
const ARG_NAMES: &'static [&'static str];
// Required method
fn format_query(
fmt: &mut impl Write,
args: &HashMap<&str, String>,
) -> Result<(), Error>;
// Provided method
fn query() -> String { ... }
}
Expand description
Derivable trait. Can have parameters. Either an object with named fields, or can be a wrapper around a selector, or Option<selector>
, or Vec<selector>
, or `NonEmpty
Required Associated Constants§
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.