pub enum SortOption {
Score,
DurationDesc,
DurationAsc,
CreatedDesc,
CreatedAsc,
DownloadsDesc,
DownloadsAsc,
RatingDesc,
RatingAsc,
}
Expand description
Sort options for search results
Variants§
Score
Sort by relevance score (default)
DurationDesc
Sort by duration, longest first
DurationAsc
Sort by duration, shortest first
CreatedDesc
Sort by creation date, newest first
CreatedAsc
Sort by creation date, oldest first
DownloadsDesc
Sort by downloads, most first
DownloadsAsc
Sort by downloads, least first
RatingDesc
Sort by rating, highest first
RatingAsc
Sort by rating, lowest first
Trait Implementations§
Source§impl Clone for SortOption
impl Clone for SortOption
Source§fn clone(&self) -> SortOption
fn clone(&self) -> SortOption
Returns a duplicate 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 SortOption
impl Debug for SortOption
Source§impl ToString for SortOption
impl ToString for SortOption
impl Copy for SortOption
Auto Trait Implementations§
impl Freeze for SortOption
impl RefUnwindSafe for SortOption
impl Send for SortOption
impl Sync for SortOption
impl Unpin for SortOption
impl UnwindSafe for SortOption
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