pub trait SQLIndex<'a, Type: SQLSchemaType, Value: SQLParam + 'a>: SQLIndexInfo + ToSQL<'a, Value> {
type Table: SQLTable<'a, Type, Value>;
}Expand description
Trait for types that represent database indexes.
Implemented by tuple structs like struct UserEmailIdx(User::email);
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".