pub struct ScriptSort { /* private fields */ }
Expand description
Sorts search hits by script result
Implementations§
Source§impl ScriptSort
impl ScriptSort
pub fn serialize<__S>(
__self: &ScriptSort,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
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
Source§impl PartialEq for ScriptSort
impl PartialEq for ScriptSort
Source§impl Serialize for ScriptSort
impl Serialize for ScriptSort
impl Eq for ScriptSort
impl StructuralPartialEq for ScriptSort
Auto Trait Implementations§
impl Freeze for ScriptSort
impl RefUnwindSafe for ScriptSort
impl Send for ScriptSort
impl Sync for ScriptSort
impl Unpin for ScriptSort
impl UnwindSafe for ScriptSort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more