Enum discord_flows::model::SortOrder
source · pub enum SortOrder {
LatestActivity,
CreationDate,
Unknown,
}
Expand description
The sort order for threads in a forum.
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.
LatestActivity
Sort forum posts by activity.
CreationDate
Sort forum posts by creation time (from most recent to oldest).
Unknown
No sort order has been set.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SortOrder
impl<'de> Deserialize<'de> for SortOrder
source§fn deserialize<D>(
deserializer: D
) -> Result<SortOrder, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<SortOrder, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for SortOrder
impl Ord for SortOrder
source§impl PartialEq<SortOrder> for SortOrder
impl PartialEq<SortOrder> for SortOrder
source§impl PartialOrd<SortOrder> for SortOrder
impl PartialOrd<SortOrder> for SortOrder
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SortOrder
impl Serialize for SortOrder
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SortOrder
impl Eq for SortOrder
impl StructuralEq for SortOrder
impl StructuralPartialEq for SortOrder
Auto Trait Implementations§
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