Skip to main content

Output

Trait Output 

Source
pub trait Output<Table, D: Driver>: Sized {
    type DataToConvert: ToConvert<D>;
    type UsedForChecks;

    // Required methods
    fn select(current_query: &mut String);
    fn convert(data: Self::DataToConvert) -> Result<Self>;
}
Expand description

Output mapping for query results.

Prefer implementing this trait via the Output derive macro; manual implementations may need updates across releases.

Required Associated Types§

Required Methods§

Source

fn select(current_query: &mut String)

Source

fn convert(data: Self::DataToConvert) -> Result<Self>

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§