pub struct HfSearchOptions {
pub query: Option<String>,
pub min_params_b: Option<f64>,
pub max_params_b: Option<f64>,
pub limit: u32,
pub page: u32,
pub sort_by: String,
pub sort_ascending: bool,
}Expand description
Options for searching HuggingFace models.
Fields§
§query: Option<String>Search query string
min_params_b: Option<f64>Minimum parameter count in billions
max_params_b: Option<f64>Maximum parameter count in billions
limit: u32Maximum number of results
page: u32Page number (0-indexed)
sort_by: StringSort field: “downloads”, “likes”, “modified”, “created”
sort_ascending: boolSort ascending (false = descending)
Implementations§
Source§impl HfSearchOptions
impl HfSearchOptions
Sourcepub fn with_query(self, query: impl Into<String>) -> Self
pub fn with_query(self, query: impl Into<String>) -> Self
Set the search query.
Sourcepub const fn with_limit(self, limit: u32) -> Self
pub const fn with_limit(self, limit: u32) -> Self
Set the result limit.
Trait Implementations§
Source§impl Clone for HfSearchOptions
impl Clone for HfSearchOptions
Source§fn clone(&self) -> HfSearchOptions
fn clone(&self) -> HfSearchOptions
Returns a duplicate 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 HfSearchOptions
impl Debug for HfSearchOptions
Source§impl Default for HfSearchOptions
impl Default for HfSearchOptions
Source§fn default() -> HfSearchOptions
fn default() -> HfSearchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HfSearchOptions
impl RefUnwindSafe for HfSearchOptions
impl Send for HfSearchOptions
impl Sync for HfSearchOptions
impl Unpin for HfSearchOptions
impl UnwindSafe for HfSearchOptions
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