#[non_exhaustive]pub struct DenseScannIndex {
pub feature_norm_type: FeatureNormType,
/* private fields */
}Expand description
Dense ScaNN index configuration.
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.feature_norm_type: FeatureNormTypeOptional. Feature norm type.
Implementations§
Source§impl DenseScannIndex
impl DenseScannIndex
pub fn new() -> Self
Sourcepub fn set_feature_norm_type<T: Into<FeatureNormType>>(self, v: T) -> Self
pub fn set_feature_norm_type<T: Into<FeatureNormType>>(self, v: T) -> Self
Sets the value of feature_norm_type.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::dense_scann_index::FeatureNormType;
let x0 = DenseScannIndex::new().set_feature_norm_type(FeatureNormType::None);
let x1 = DenseScannIndex::new().set_feature_norm_type(FeatureNormType::UnitL2Norm);Trait Implementations§
Source§impl Clone for DenseScannIndex
impl Clone for DenseScannIndex
Source§fn clone(&self) -> DenseScannIndex
fn clone(&self) -> DenseScannIndex
Returns a duplicate of the value. Read more
1.0.0 · 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 DenseScannIndex
impl Debug for DenseScannIndex
Source§impl Default for DenseScannIndex
impl Default for DenseScannIndex
Source§fn default() -> DenseScannIndex
fn default() -> DenseScannIndex
Returns the “default value” for a type. Read more
Source§impl Message for DenseScannIndex
impl Message for DenseScannIndex
Source§impl PartialEq for DenseScannIndex
impl PartialEq for DenseScannIndex
impl StructuralPartialEq for DenseScannIndex
Auto Trait Implementations§
impl Freeze for DenseScannIndex
impl RefUnwindSafe for DenseScannIndex
impl Send for DenseScannIndex
impl Sync for DenseScannIndex
impl Unpin for DenseScannIndex
impl UnsafeUnpin for DenseScannIndex
impl UnwindSafe for DenseScannIndex
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