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§
type DataToConvert: ToConvert<D>
type UsedForChecks
Required Methods§
fn select(current_query: &mut String)
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.