#[non_exhaustive]pub struct FtHnswVectorFieldAttributes {
pub type: FtVectorType,
pub dim: usize,
pub distance_metric: FtVectorDistanceMetric,
pub initial_cap: Option<usize>,
pub m: Option<usize>,
pub ef_construction: Option<usize>,
pub ef_runtime: Option<usize>,
pub epsilon: Option<f64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: FtVectorType§dim: usize§distance_metric: FtVectorDistanceMetric§initial_cap: Option<usize>§m: Option<usize>§ef_construction: Option<usize>§ef_runtime: Option<usize>§epsilon: Option<f64>Implementations§
Source§impl FtHnswVectorFieldAttributes
impl FtHnswVectorFieldAttributes
pub fn new( ty: FtVectorType, dim: usize, distance_metric: FtVectorDistanceMetric, ) -> Self
pub fn initial_cap(self, initial_cap: usize) -> Self
pub fn m(self, m: usize) -> Self
pub fn ef_construction(self, ef_construction: usize) -> Self
pub fn ef_runtime(self, ef_runtime: usize) -> Self
pub fn epsilon(self, epsilon: f64) -> Self
Trait Implementations§
Source§impl Clone for FtHnswVectorFieldAttributes
impl Clone for FtHnswVectorFieldAttributes
impl Copy for FtHnswVectorFieldAttributes
Source§impl Debug for FtHnswVectorFieldAttributes
impl Debug for FtHnswVectorFieldAttributes
Auto Trait Implementations§
impl Freeze for FtHnswVectorFieldAttributes
impl RefUnwindSafe for FtHnswVectorFieldAttributes
impl Send for FtHnswVectorFieldAttributes
impl Sync for FtHnswVectorFieldAttributes
impl Unpin for FtHnswVectorFieldAttributes
impl UnsafeUnpin for FtHnswVectorFieldAttributes
impl UnwindSafe for FtHnswVectorFieldAttributes
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