#[non_exhaustive]pub enum SortOrder {
Asc,
Desc,
Other(String),
}Expand description
Sort direction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
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
impl Eq for SortOrder
Auto Trait Implementations§
impl Forget for SortOrder
impl Freeze for SortOrder
impl Move for SortOrder
impl RefUnwindSafe for SortOrder
impl Send for SortOrderwhere
RawVecInner: Send,
impl Sync for SortOrderwhere
RawVecInner: Sync,
impl Unpin for SortOrder
impl UnsafeUnpin for SortOrder
impl UnwindSafe for SortOrderwhere
RawVecInner: UnwindSafe,
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