SearchBody

Struct SearchBody 

Source
pub struct SearchBody {
Show 20 fields pub query: Option<ApiQuery>, pub highlight: Option<ApiHighlight>, pub collapse: Option<ApiCollapse>, pub post_filter: Option<ApiQuery>, pub rescore: Option<ApiRescore>, pub aggs: Option<HashMap<String, ApiAggregation>>, pub aggregations: Option<HashMap<String, ApiAggregation>>, pub sort: Option<SortSingleOrVec>, pub slice: Option<ApiSlice>, pub stored_fields: Option<String>, pub docvalue_fields: Option<Vec<DocValOrString>>, pub explain: Option<bool>, pub from: Option<u32>, pub min_score: Option<Num>, pub seq_no_primary_term: Option<bool>, pub size: Option<u32>, pub _source: Option<bool>, pub terminate_after: Option<u32>, pub timeout: Option<String>, pub track_total_hits: Option<bool>,
}

Fields§

§query: Option<ApiQuery>§highlight: Option<ApiHighlight>§collapse: Option<ApiCollapse>§post_filter: Option<ApiQuery>§rescore: Option<ApiRescore>§aggs: Option<HashMap<String, ApiAggregation>>§aggregations: Option<HashMap<String, ApiAggregation>>§sort: Option<SortSingleOrVec>§slice: Option<ApiSlice>§stored_fields: Option<String>§docvalue_fields: Option<Vec<DocValOrString>>§explain: Option<bool>§from: Option<u32>§min_score: Option<Num>§seq_no_primary_term: Option<bool>§size: Option<u32>§_source: Option<bool>§terminate_after: Option<u32>§timeout: Option<String>§track_total_hits: Option<bool>

Trait Implementations§

Source§

impl Debug for SearchBody

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SearchBody

Source§

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 Serialize for SearchBody

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,