#[non_exhaustive]pub enum IndexClass {
Legacy,
Sai,
Sasi,
Custom(String),
}Expand description
Which kind of index implementation serves a column.
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.
Legacy
CREATE INDEX without USING: the classic secondary index (equality, CONTAINS).
Sai
Storage-Attached Index, USING 'sai' (Cassandra 5.0): equality, ranges, CONTAINS, vector ANN.
Sasi
SASI, USING '...SASIIndex': equality, ranges and LIKE.
Custom(String)
Any other custom index class; cqlc does not know its capabilities.
Implementations§
Source§impl IndexClass
impl IndexClass
Sourcepub fn from_using(class: Option<&str>) -> IndexClass
pub fn from_using(class: Option<&str>) -> IndexClass
Classifies a USING 'class' string.
Trait Implementations§
Source§impl Clone for IndexClass
impl Clone for IndexClass
Source§impl Debug for IndexClass
impl Debug for IndexClass
impl Eq for IndexClass
Source§impl PartialEq for IndexClass
impl PartialEq for IndexClass
impl StructuralPartialEq for IndexClass
Auto Trait Implementations§
impl Freeze for IndexClass
impl RefUnwindSafe for IndexClass
impl Send for IndexClass
impl Sync for IndexClass
impl Unpin for IndexClass
impl UnsafeUnpin for IndexClass
impl UnwindSafe for IndexClass
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