pub struct OpenRouterCatalogParams {
pub page: Option<usize>,
pub per_page: Option<usize>,
pub search: Option<String>,
pub provider: Option<String>,
pub free_only: Option<bool>,
pub min_context: Option<u64>,
}Expand description
Query parameters for the OpenRouter catalog endpoint
Fields§
§page: Option<usize>1-based page number (default: 1)
per_page: Option<usize>Results per page, clamped to [1, 200] (default: 50)
search: Option<String>Free-text search across name, id, description, and provider
provider: Option<String>Filter by provider prefix, e.g. “openai”, “meta”, “google”
free_only: Option<bool>When true, only return models with zero-cost pricing
min_context: Option<u64>Minimum context-length in tokens, e.g. 32000
Trait Implementations§
Source§impl Debug for OpenRouterCatalogParams
impl Debug for OpenRouterCatalogParams
Source§impl<'de> Deserialize<'de> for OpenRouterCatalogParams
impl<'de> Deserialize<'de> for OpenRouterCatalogParams
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 OpenRouterCatalogParams
impl RefUnwindSafe for OpenRouterCatalogParams
impl Send for OpenRouterCatalogParams
impl Sync for OpenRouterCatalogParams
impl Unpin for OpenRouterCatalogParams
impl UnsafeUnpin for OpenRouterCatalogParams
impl UnwindSafe for OpenRouterCatalogParams
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> 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