Struct elasticsearch_dsl::search::sort::ScriptSort
source · [−]pub struct ScriptSort { /* private fields */ }
Expand description
Sorts search hits by script result
Implementations
sourceimpl ScriptSort
impl ScriptSort
sourcepub fn new(script: Script) -> Self
pub fn new(script: Script) -> Self
Creates an instance of ScriptSort
sourcepub fn ascending(script: Script) -> Self
pub fn ascending(script: Script) -> Self
Creates an instance of ScriptSort by ascending order
sourcepub fn descending(script: Script) -> Self
pub fn descending(script: Script) -> Self
Creates an instance of ScriptSort by descending order
sourcepub fn type(self, type: ScriptSortType) -> Self
pub fn type(self, type: ScriptSortType) -> Self
Sort type for script result
Trait Implementations
sourceimpl Clone for ScriptSort
impl Clone for ScriptSort
sourcefn clone(&self) -> ScriptSort
fn clone(&self) -> ScriptSort
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScriptSort
impl Debug for ScriptSort
sourceimpl From<ScriptSort> for Sort
impl From<ScriptSort> for Sort
sourcefn from(value: ScriptSort) -> Self
fn from(value: ScriptSort) -> Self
Converts to this type from the input type.
sourceimpl IntoIterator for ScriptSort
impl IntoIterator for ScriptSort
type Item = ScriptSort
type Item = ScriptSort
The type of the elements being iterated over.
type IntoIter = IntoIter<<ScriptSort as IntoIterator>::Item>
type IntoIter = IntoIter<<ScriptSort as IntoIterator>::Item>
Which kind of iterator are we turning this into?
sourceimpl PartialEq<ScriptSort> for ScriptSort
impl PartialEq<ScriptSort> for ScriptSort
sourcefn eq(&self, other: &ScriptSort) -> bool
fn eq(&self, other: &ScriptSort) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScriptSort) -> bool
fn ne(&self, other: &ScriptSort) -> bool
This method tests for !=
.
sourceimpl Serialize for ScriptSort
impl Serialize for ScriptSort
impl StructuralPartialEq for ScriptSort
Auto Trait Implementations
impl RefUnwindSafe for ScriptSort
impl Send for ScriptSort
impl Sync for ScriptSort
impl Unpin for ScriptSort
impl UnwindSafe for ScriptSort
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more