[][src]Struct rs_es::operations::search::SortField

pub struct SortField(_);

Representing sort options for a specific field, can be combined with others to produce the full sort clause

Methods

impl SortField[src]

pub fn new<S: Into<String>>(field: S, order: Option<Order>) -> Self[src]

Create a SortField for a given field and order

pub fn with_mode<T: Into<Mode>>(self, val: T) -> Self[src]

pub fn with_nested_path<T: Into<String>>(self, val: T) -> Self[src]

pub fn with_nested_filter<T: Into<Query>>(self, val: T) -> Self[src]

pub fn with_missing<T: Into<Missing>>(self, val: T) -> Self[src]

pub fn with_unmapped_type<T: Into<String>>(self, val: T) -> Self[src]

pub fn build(self) -> SortBy[src]

Trait Implementations

impl Debug for SortField[src]

impl Serialize for SortField[src]

impl ToString for SortField[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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