Trait EdgedbComposableQuery

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

Source

const ARG_NAMES: &'static [&'static str]

Required Associated Types§

Required Methods§

Source

fn format_query( fmt: &mut impl Write, args: &HashMap<&str, String>, ) -> Result<(), Error>

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.

Implementors§