Enum crates_io_api::Sort
source · pub enum Sort {
Alphabetical,
Relevance,
Downloads,
RecentDownloads,
RecentUpdates,
NewlyAdded,
}
Expand description
Used to specify the sort behaviour of the Client::crates()
method.
Variants§
Alphabetical
Sort alphabetically.
Relevance
Sort by relevance (meaningless if used without a query).
Downloads
Sort by downloads.
RecentDownloads
Sort by recent downloads
RecentUpdates
Sort by recent updates
NewlyAdded
Sort by new
Trait Implementations§
source§impl PartialEq for Sort
impl PartialEq for Sort
impl Eq for Sort
impl StructuralEq for Sort
impl StructuralPartialEq for Sort
Auto Trait Implementations§
impl RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl UnwindSafe for Sort
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<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.