pub enum SortOrder {
CreateTimestampAscending,
CreateTimestampDescending,
IncomingLinksAscending,
IncomingLinksDescending,
JustMatch,
LastEditAscending,
LastEditDescending,
NoSort,
Random,
Relevance,
UserRandom,
}
Expand description
The sort order of returned search results
Variants§
CreateTimestampAscending
Sort the results by their creation date in ascending order
CreateTimestampDescending
Sort the results by their creation date in descending order
IncomingLinksAscending
Sort the results by their amount of pages linking to it in ascending order
IncomingLinksDescending
Sort the results by their amount of pages linking to it in descending order
JustMatch
Sort the results only by their match to the query
LastEditAscending
Sort the results by the time of their last edit in ascending order
LastEditDescending
Sort the results by the time of their last edit in descending order
NoSort
Do not sort the search results
Random
Arrange the results in a random order
Relevance
Sort the results by relevance
UserRandom
Arrange the results in a random order depending on the current user
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SortOrder
impl<'de> Deserialize<'de> for SortOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SortOrder
impl RefUnwindSafe for SortOrder
impl Send for SortOrder
impl Sync for SortOrder
impl Unpin for SortOrder
impl UnwindSafe for SortOrder
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