pub trait QueryMetadata<T>: Backend {
// Required method
fn row_metadata(
lookup: &mut Self::MetadataLookup,
out: &mut Vec<Option<Self::TypeMetadata>>,
);
}
Expand description
A helper to translate type level sql type information into runtime type information for specific queries
If you do not implement a custom backend implementation this trait is likely not relevant for you.
Required Methods§
Sourcefn row_metadata(
lookup: &mut Self::MetadataLookup,
out: &mut Vec<Option<Self::TypeMetadata>>,
)
fn row_metadata( lookup: &mut Self::MetadataLookup, out: &mut Vec<Option<Self::TypeMetadata>>, )
The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
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.