#[non_exhaustive]pub struct ListModelsParams {Show 15 fields
pub category: Option<ModelCategory>,
pub supported_parameters: Option<SupportedParameters>,
pub output_modalities: Option<String>,
pub sort: Option<String>,
pub q: Option<String>,
pub input_modalities: Option<String>,
pub context: Option<u32>,
pub min_price: Option<f64>,
pub max_price: Option<f64>,
pub arch: Option<String>,
pub model_authors: Option<String>,
pub providers: Option<String>,
pub distillable: Option<bool>,
pub zdr: Option<bool>,
pub region: Option<String>,
}Expand description
Extended query parameters for GET /models.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.category: Option<ModelCategory>§supported_parameters: Option<SupportedParameters>§output_modalities: Option<String>§sort: Option<String>§q: Option<String>§input_modalities: Option<String>§context: Option<u32>§min_price: Option<f64>§max_price: Option<f64>§arch: Option<String>§providers: Option<String>§distillable: Option<bool>§zdr: Option<bool>§region: Option<String>Implementations§
Source§impl ListModelsParams
impl ListModelsParams
pub fn builder() -> ListModelsParamsBuilder
Trait Implementations§
Source§impl Clone for ListModelsParams
impl Clone for ListModelsParams
Source§fn clone(&self) -> ListModelsParams
fn clone(&self) -> ListModelsParams
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 ListModelsParams
impl Debug for ListModelsParams
Source§impl Default for ListModelsParams
impl Default for ListModelsParams
Source§fn default() -> ListModelsParams
fn default() -> ListModelsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListModelsParams
impl<'de> Deserialize<'de> for ListModelsParams
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
Auto Trait Implementations§
impl Freeze for ListModelsParams
impl RefUnwindSafe for ListModelsParams
impl Send for ListModelsParams
impl Sync for ListModelsParams
impl Unpin for ListModelsParams
impl UnsafeUnpin for ListModelsParams
impl UnwindSafe for ListModelsParams
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