pub struct CollectionResponse {
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>>,
pub created_at: i64,
pub num_documents: i64,
}
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>>
§created_at: i64
Timestamp of when the collection was created (Unix epoch in seconds)
num_documents: i64
Number of documents in the collection
Implementations§
Trait Implementations§
source§impl Clone for CollectionResponse
impl Clone for CollectionResponse
source§fn clone(&self) -> CollectionResponse
fn clone(&self) -> CollectionResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollectionResponse
impl Debug for CollectionResponse
source§impl Default for CollectionResponse
impl Default for CollectionResponse
source§fn default() -> CollectionResponse
fn default() -> CollectionResponse
source§impl<'de> Deserialize<'de> for CollectionResponse
impl<'de> Deserialize<'de> for CollectionResponse
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>,
source§impl PartialEq for CollectionResponse
impl PartialEq for CollectionResponse
source§impl Serialize for CollectionResponse
impl Serialize for CollectionResponse
impl StructuralPartialEq for CollectionResponse
Auto Trait Implementations§
impl Freeze for CollectionResponse
impl RefUnwindSafe for CollectionResponse
impl Send for CollectionResponse
impl Sync for CollectionResponse
impl Unpin for CollectionResponse
impl UnwindSafe for CollectionResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)