pub enum SearchSortMode {
Relevance,
Timestamp,
}Expand description
Sorting algorithm to use.
Variants§
Relevance
Sort by the relevance of the message to the search query.
Timestamp
Sort by the message creation time.
This is the default sort mode Discord uses.
Trait Implementations§
Source§impl Clone for SearchSortMode
impl Clone for SearchSortMode
Source§fn clone(&self) -> SearchSortMode
fn clone(&self) -> SearchSortMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SearchSortMode
Source§impl Debug for SearchSortMode
impl Debug for SearchSortMode
Source§impl<'de> Deserialize<'de> for SearchSortMode
impl<'de> Deserialize<'de> for SearchSortMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchSortMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchSortMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SearchSortMode
impl Display for SearchSortMode
impl Eq for SearchSortMode
Source§impl Hash for SearchSortMode
impl Hash for SearchSortMode
Source§impl PartialEq for SearchSortMode
impl PartialEq for SearchSortMode
Source§impl Serialize for SearchSortMode
impl Serialize for SearchSortMode
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 StructuralPartialEq for SearchSortMode
Auto Trait Implementations§
impl Forget for SearchSortMode
impl Freeze for SearchSortMode
impl Move for SearchSortMode
impl RefUnwindSafe for SearchSortMode
impl Send for SearchSortMode
impl Sync for SearchSortMode
impl Unpin for SearchSortMode
impl UnsafeUnpin for SearchSortMode
impl UnwindSafe for SearchSortMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.