pub struct OpenRouterSource { /* private fields */ }Available on crate feature
model-discovery only.Expand description
An alternative public feed: https://openrouter.ai/api/v1/models (no key).
Implementations§
Source§impl OpenRouterSource
impl OpenRouterSource
Sourcepub fn new() -> Result<OpenRouterSource, Error>
pub fn new() -> Result<OpenRouterSource, Error>
Create a source pointing at the canonical OpenRouter models endpoint.
§Errors
Returns an error if the feed HTTP client cannot be constructed.
Sourcepub fn with_url(self, url: impl Into<String>) -> OpenRouterSource
pub fn with_url(self, url: impl Into<String>) -> OpenRouterSource
Override the feed URL (e.g. for a mirror or a local test server).
Trait Implementations§
Source§impl Default for OpenRouterSource
impl Default for OpenRouterSource
Source§fn default() -> OpenRouterSource
fn default() -> OpenRouterSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OpenRouterSource
impl !UnwindSafe for OpenRouterSource
impl Freeze for OpenRouterSource
impl Send for OpenRouterSource
impl Sync for OpenRouterSource
impl Unpin for OpenRouterSource
impl UnsafeUnpin for OpenRouterSource
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