pub enum ModelSortBy {
AddedAt,
Name,
ParamCount,
LatestTgTps,
}Expand description
The field to sort the model list by.
Variants§
AddedAt
Sort by when the model was added (most recent first by default).
Name
Sort alphabetically by model name.
ParamCount
Sort by parameter count (in billions).
LatestTgTps
Sort by the most recent token-generation throughput from benchmarks.
Trait Implementations§
Source§impl Clone for ModelSortBy
impl Clone for ModelSortBy
Source§fn clone(&self) -> ModelSortBy
fn clone(&self) -> ModelSortBy
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 moreSource§impl Debug for ModelSortBy
impl Debug for ModelSortBy
Source§impl Default for ModelSortBy
impl Default for ModelSortBy
Source§fn default() -> ModelSortBy
fn default() -> ModelSortBy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelSortBy
impl<'de> Deserialize<'de> for ModelSortBy
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 PartialEq for ModelSortBy
impl PartialEq for ModelSortBy
Source§fn eq(&self, other: &ModelSortBy) -> bool
fn eq(&self, other: &ModelSortBy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelSortBy
impl Serialize for ModelSortBy
impl Copy for ModelSortBy
impl Eq for ModelSortBy
impl StructuralPartialEq for ModelSortBy
Auto Trait Implementations§
impl Freeze for ModelSortBy
impl RefUnwindSafe for ModelSortBy
impl Send for ModelSortBy
impl Sync for ModelSortBy
impl Unpin for ModelSortBy
impl UnsafeUnpin for ModelSortBy
impl UnwindSafe for ModelSortBy
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