pub struct VectorIndexDescriptor {
pub dimension: usize,
pub metric: VectorMetric,
pub normalization: VectorNormalization,
pub max_records: usize,
pub max_bytes: usize,
}Expand description
Immutable vector shape and logical resource budgets.
Fields§
§dimension: usize§metric: VectorMetric§normalization: VectorNormalization§max_records: usize§max_bytes: usizeImplementations§
Source§impl VectorIndexDescriptor
impl VectorIndexDescriptor
pub const DEFAULT_MAX_RECORDS: usize = 100_000
pub const DEFAULT_MAX_BYTES: usize
pub fn with_metric(self, metric: VectorMetric) -> Self
pub fn with_normalization(self, normalization: VectorNormalization) -> Self
pub fn with_max_records(self, max_records: usize) -> Self
pub fn with_max_bytes(self, max_bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for VectorIndexDescriptor
impl Clone for VectorIndexDescriptor
Source§fn clone(&self) -> VectorIndexDescriptor
fn clone(&self) -> VectorIndexDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VectorIndexDescriptor
impl Debug for VectorIndexDescriptor
Source§impl<'de> Deserialize<'de> for VectorIndexDescriptor
impl<'de> Deserialize<'de> for VectorIndexDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VectorIndexDescriptor
Source§impl PartialEq for VectorIndexDescriptor
impl PartialEq for VectorIndexDescriptor
Source§impl Serialize for VectorIndexDescriptor
impl Serialize for VectorIndexDescriptor
impl StructuralPartialEq for VectorIndexDescriptor
Auto Trait Implementations§
impl Freeze for VectorIndexDescriptor
impl RefUnwindSafe for VectorIndexDescriptor
impl Send for VectorIndexDescriptor
impl Sync for VectorIndexDescriptor
impl Unpin for VectorIndexDescriptor
impl UnsafeUnpin for VectorIndexDescriptor
impl UnwindSafe for VectorIndexDescriptor
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