Enum roboat::catalog::catalog_types::SortAggregation
source · pub enum SortAggregation {
PastDay,
PastWeek,
PastMonth,
AllTime,
}
Expand description
A time period for when a sort applies.
Variants§
Trait Implementations§
source§impl Clone for SortAggregation
impl Clone for SortAggregation
source§fn clone(&self) -> SortAggregation
fn clone(&self) -> SortAggregation
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 SortAggregation
impl Debug for SortAggregation
source§impl Default for SortAggregation
impl Default for SortAggregation
source§fn default() -> SortAggregation
fn default() -> SortAggregation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SortAggregation
impl<'de> Deserialize<'de> for SortAggregation
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 Hash for SortAggregation
impl Hash for SortAggregation
source§impl Ord for SortAggregation
impl Ord for SortAggregation
source§fn cmp(&self, other: &SortAggregation) -> Ordering
fn cmp(&self, other: &SortAggregation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SortAggregation
impl PartialEq for SortAggregation
source§fn eq(&self, other: &SortAggregation) -> bool
fn eq(&self, other: &SortAggregation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SortAggregation
impl PartialOrd for SortAggregation
source§fn partial_cmp(&self, other: &SortAggregation) -> Option<Ordering>
fn partial_cmp(&self, other: &SortAggregation) -> Option<Ordering>
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 SortAggregation
impl Serialize for SortAggregation
impl Copy for SortAggregation
impl Eq for SortAggregation
impl StructuralPartialEq for SortAggregation
Auto Trait Implementations§
impl Freeze for SortAggregation
impl RefUnwindSafe for SortAggregation
impl Send for SortAggregation
impl Sync for SortAggregation
impl Unpin for SortAggregation
impl UnwindSafe for SortAggregation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.