pub trait AnyImpl {
// Required methods
fn columns() -> Vec<AnyInfo>;
fn to_map(&self) -> HashMap<String, String>;
}Expand description
A trait for types that can be mapped from an AnyRow and provide column metadata.
This trait is the backbone of the ORM’s reflection capabilities. It allows the system to know which columns correspond to which fields in a Rust struct.
This trait is typically implemented automatically via the FromAnyRow derive macro,
but can be implemented manually for custom scenarios.
Required 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.