pub enum SortMode {
DateAscending,
DateDescending,
PopularDescending,
}Expand description
Sort mode when search for content
Some api routes only work with date related modes when the user has no premium subscription.
Variants§
DateAscending
date, oldest to newest
DateDescending
date, newest to oldest
PopularDescending
popularity, most to least popular
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SortMode
impl<'de> Deserialize<'de> for SortMode
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
impl Eq for SortMode
impl StructuralPartialEq for SortMode
Auto Trait Implementations§
impl Freeze for SortMode
impl RefUnwindSafe for SortMode
impl Send for SortMode
impl Sync for SortMode
impl Unpin for SortMode
impl UnsafeUnpin for SortMode
impl UnwindSafe for SortMode
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