pub struct ModelFilter {
pub capabilities: Vec<ModelCapability>,
pub max_size_mb: Option<u64>,
pub max_latency_ms: Option<u64>,
pub max_cost_per_mtok: Option<f64>,
pub tags: Vec<String>,
pub provider: Option<String>,
pub local_only: bool,
pub available_only: bool,
}Expand description
Filter for querying the registry.
Fields§
§capabilities: Vec<ModelCapability>Required capabilities (model must have ALL of these).
max_size_mb: Option<u64>Maximum on-disk / RAM size in MB.
max_latency_ms: Option<u64>Maximum expected latency in ms (from declared envelope).
max_cost_per_mtok: Option<f64>Maximum cost per 1M output tokens in USD.
Required tags (model must have ALL of these).
provider: Option<String>Filter by provider.
local_only: boolOnly local models.
available_only: boolOnly models that are currently available.
Trait Implementations§
Source§impl Clone for ModelFilter
impl Clone for ModelFilter
Source§fn clone(&self) -> ModelFilter
fn clone(&self) -> ModelFilter
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 ModelFilter
impl Debug for ModelFilter
Source§impl Default for ModelFilter
impl Default for ModelFilter
Source§fn default() -> ModelFilter
fn default() -> ModelFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelFilter
impl RefUnwindSafe for ModelFilter
impl Send for ModelFilter
impl Sync for ModelFilter
impl Unpin for ModelFilter
impl UnsafeUnpin for ModelFilter
impl UnwindSafe for ModelFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more