typesense 0.4.0

Client for typesense
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use typesense_codegen::models::MultiSearchCollectionParameters;

/// Represents the body of a multi-search request.
///
/// This struct acts as a container for a list of individual search queries that will be
/// sent to the Typesense multi-search endpoint. Each search query is defined in a
/// `MultiSearchCollectionParameters` struct within the `searches` vector.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, bon::Builder)]
pub struct MultiSearchBody<'a> {
    /// A vector of individual search queries to be executed. The order of the search results returned by Typesense will match the order of these queries.
    #[serde(rename = "searches")]
    pub searches: Vec<MultiSearchCollectionParameters<'a>>,
}