pub trait ComposableQuery {
    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 { ... }
}

Required Associated Constants§

source

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

Required Methods§

source

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

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§