#[non_exhaustive]pub enum ForumSortOrder {
CreationDate,
LatestActivity,
Unknown(u8),
}
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.
CreationDate
Sort forum posts by creation time (from most recent to oldest).
LatestActivity
Sort forum posts by activity.
Unknown(u8)
Variant value is unknown to the library.
Implementations§
Trait Implementations§
source§impl Clone for ForumSortOrder
impl Clone for ForumSortOrder
source§fn clone(&self) -> ForumSortOrder
fn clone(&self) -> ForumSortOrder
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 ForumSortOrder
impl Debug for ForumSortOrder
source§impl<'de> Deserialize<'de> for ForumSortOrder
impl<'de> Deserialize<'de> for ForumSortOrder
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
source§impl From<ForumSortOrder> for u8
impl From<ForumSortOrder> for u8
source§fn from(value: ForumSortOrder) -> Self
fn from(value: ForumSortOrder) -> Self
Converts to this type from the input type.
source§impl From<u8> for ForumSortOrder
impl From<u8> for ForumSortOrder
source§impl Hash for ForumSortOrder
impl Hash for ForumSortOrder
source§impl PartialEq for ForumSortOrder
impl PartialEq for ForumSortOrder
source§impl Serialize for ForumSortOrder
impl Serialize for ForumSortOrder
impl Copy for ForumSortOrder
impl Eq for ForumSortOrder
impl StructuralPartialEq for ForumSortOrder
Auto Trait Implementations§
impl Freeze for ForumSortOrder
impl RefUnwindSafe for ForumSortOrder
impl Send for ForumSortOrder
impl Sync for ForumSortOrder
impl Unpin for ForumSortOrder
impl UnwindSafe for ForumSortOrder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)