pub struct IndexKind(pub String);Expand description
How a vector index is built. Open value wrapper — the constants cover upstream’s list, and any other string a provider understands is accepted.
Tuple Fields§
§0: StringImplementations§
Source§impl IndexKind
impl IndexKind
pub const HNSW: &'static str = "hnsw"
pub const FLAT: &'static str = "flat"
pub const IVF_FLAT: &'static str = "ivf_flat"
pub const DISK_ANN: &'static str = "disk_ann"
pub const QUANTIZED_FLAT: &'static str = "quantized_flat"
pub const DYNAMIC: &'static str = "dynamic"
pub const DEFAULT: &'static str = "default"
pub fn new(value: impl Into<String>) -> IndexKind
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexKind
impl<'de> Deserialize<'de> for IndexKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexKind
Source§impl Serialize for IndexKind
impl Serialize for IndexKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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