#[non_exhaustive]pub enum IndexMethod {
BTree,
Hash,
Gist,
Gin,
Brin,
FullText,
Spatial,
}Expand description
Index method (PostgreSQL and MySQL)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BTree
BTREE - B-Tree index (default for most databases)
Hash
HASH - Hash index
Gist
GIST - Generalized Search Tree (PostgreSQL)
Gin
GIN - Generalized Inverted Index (PostgreSQL)
Brin
BRIN - Block Range Index (PostgreSQL)
FullText
FULLTEXT - Full-text index (MySQL)
Spatial
SPATIAL - Spatial index (MySQL)
Implementations§
Trait Implementations§
Source§impl Clone for IndexMethod
impl Clone for IndexMethod
Source§fn clone(&self) -> IndexMethod
fn clone(&self) -> IndexMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexMethod
impl Debug for IndexMethod
Source§impl PartialEq for IndexMethod
impl PartialEq for IndexMethod
impl Copy for IndexMethod
impl Eq for IndexMethod
impl StructuralPartialEq for IndexMethod
Auto Trait Implementations§
impl Freeze for IndexMethod
impl RefUnwindSafe for IndexMethod
impl Send for IndexMethod
impl Sync for IndexMethod
impl Unpin for IndexMethod
impl UnsafeUnpin for IndexMethod
impl UnwindSafe for IndexMethod
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