pub struct CollectionSchema {
pub default_sorting_field: Option<String>,
pub enable_nested_fields: Option<bool>,
pub fields: Vec<Field>,
pub name: String,
pub symbols_to_index: Option<Vec<String>>,
pub token_separators: Option<Vec<String>>,
pub voice_query_model: Option<Box<VoiceQueryModelCollectionConfig>>,
}
Fields§
§default_sorting_field: Option<String>
The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity.
enable_nested_fields: Option<bool>
Enables experimental support at a collection level for nested object or
object array fields. This field is only available if the Typesense
server is version 0.24.0.rcn34
or later.
fields: Vec<Field>
A list of fields for querying, filtering and faceting
name: String
Name of the collection
symbols_to_index: Option<Vec<String>>
List of symbols or special characters to be indexed.
token_separators: Option<Vec<String>>
List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters.
voice_query_model: Option<Box<VoiceQueryModelCollectionConfig>>
Implementations§
Trait Implementations§
Source§impl Clone for CollectionSchema
impl Clone for CollectionSchema
Source§fn clone(&self) -> CollectionSchema
fn clone(&self) -> CollectionSchema
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 CollectionSchema
impl Debug for CollectionSchema
Source§impl Default for CollectionSchema
impl Default for CollectionSchema
Source§fn default() -> CollectionSchema
fn default() -> CollectionSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectionSchema
impl<'de> Deserialize<'de> for CollectionSchema
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
Source§impl PartialEq for CollectionSchema
impl PartialEq for CollectionSchema
Source§impl Serialize for CollectionSchema
impl Serialize for CollectionSchema
impl StructuralPartialEq for CollectionSchema
Auto Trait Implementations§
impl Freeze for CollectionSchema
impl RefUnwindSafe for CollectionSchema
impl Send for CollectionSchema
impl Sync for CollectionSchema
impl Unpin for CollectionSchema
impl UnwindSafe for CollectionSchema
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