Struct elasticsearch_dsl::search::sort::ScriptSort
source · pub struct ScriptSort { /* private fields */ }
Expand description
Sorts search hits by script result
Implementations§
source§impl 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§
source§impl Clone for ScriptSort
impl Clone for ScriptSort
source§fn clone(&self) -> ScriptSort
fn clone(&self) -> ScriptSort
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScriptSort
impl Debug for ScriptSort
source§impl From<ScriptSort> for Sort
impl From<ScriptSort> for Sort
source§fn from(value: ScriptSort) -> Self
fn from(value: ScriptSort) -> Self
Converts to this type from the input type.
source§impl 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?