Skip to main content

SQLIndex

Trait SQLIndex 

Source
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§

Source

type Table: SQLTable<'a, Type, Value>

The table type this index is associated with

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§