pub struct Field {Show 16 fields
pub drop: Option<bool>,
pub embed: Option<Box<FieldEmbed>>,
pub facet: Option<bool>,
pub index: Option<bool>,
pub infix: Option<bool>,
pub locale: Option<String>,
pub name: String,
pub num_dim: Option<i32>,
pub optional: Option<bool>,
pub range_index: Option<bool>,
pub reference: Option<String>,
pub sort: Option<bool>,
pub stem: Option<bool>,
pub store: Option<bool>,
pub type: String,
pub vec_dist: Option<String>,
}
Fields§
§drop: Option<bool>
§embed: Option<Box<FieldEmbed>>
§facet: Option<bool>
§index: Option<bool>
§infix: Option<bool>
§locale: Option<String>
§name: String
§num_dim: Option<i32>
§optional: Option<bool>
§range_index: Option<bool>
Enables an index optimized for range filtering on numerical fields (e.g. rating:>3.5). Default: false.
reference: Option<String>
Name of a field in another collection that should be linked to this collection so that it can be joined during query.
sort: Option<bool>
§stem: Option<bool>
Values are stemmed before indexing in-memory. Default: false.
store: Option<bool>
When set to false, the field value will not be stored on disk. Default: true.
type: String
§vec_dist: Option<String>
The distance metric to be used for vector search. Default: cosine
. You
can also use ip
for inner product.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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 StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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