pub enum IndexType {
Key,
Index,
Unique,
Fulltext,
Spatial,
Object,
HnswEuclidean,
HnswCosine,
HnswDot,
Trigram,
Ttl,
}Expand description
The kind of an index.
PHP: Utopia\Query\Schema\IndexType.
Variants§
Key
A key.
Index
A plain index.
Unique
A unique index.
Fulltext
A full-text index.
Spatial
A spatial index.
Object
An object index.
HnswEuclidean
An HNSW vector index on euclidean distance.
HnswCosine
An HNSW vector index on cosine distance.
HnswDot
An HNSW vector index on inner product.
Trigram
A trigram index.
Ttl
A TTL index.
Implementations§
Source§impl IndexType
impl IndexType
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\IndexType"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\IndexType"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Trait Implementations§
impl Copy for IndexType
impl Eq for IndexType
impl StructuralPartialEq for IndexType
Auto Trait Implementations§
impl Forget for IndexType
impl Freeze for IndexType
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.