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

Implementors§