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