pub enum IndexType {
BTree,
Hash,
Gin,
Gist,
Brin,
FullText,
}Expand description
Index access method / algorithm.
The default (when None is stored on IndexIr) lets the DBMS choose
(BTree on every supported database).
Variants§
BTree
B-Tree (default on all databases).
Hash
Hash index — PostgreSQL and MySQL 8+.
Gin
Generalized Inverted Index — PostgreSQL only (arrays, JSONB, full-text).
Gist
Generalized Search Tree — PostgreSQL only (geometry, range types).
Brin
Block Range Index — PostgreSQL only (large ordered tables).
FullText
Full-text index — MySQL only.
Implementations§
Source§impl IndexType
impl IndexType
Sourcepub fn supported_by(self, provider: DatabaseProvider) -> bool
pub fn supported_by(self, provider: DatabaseProvider) -> bool
Returns true when this index type is supported by the given database provider.
Sourcepub fn supported_providers(self) -> &'static str
pub fn supported_providers(self) -> &'static str
Human-readable list of supported providers (for diagnostics).
Trait Implementations§
impl Copy for IndexType
impl Eq for IndexType
impl StructuralPartialEq for IndexType
Auto Trait Implementations§
impl Freeze for IndexType
impl RefUnwindSafe for IndexType
impl Send for IndexType
impl Sync for IndexType
impl Unpin for IndexType
impl UnsafeUnpin for IndexType
impl UnwindSafe for IndexType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more