[−][src]Struct rs_es::operations::search::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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl ToString for SortField
[src]
Auto Trait Implementations
impl RefUnwindSafe for SortField
impl Send for SortField
impl Sync for SortField
impl Unpin for SortField
impl UnwindSafe for SortField
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,