pub struct DiscoveredModel {
pub id: String,
pub prompt_price: Option<f64>,
pub context: Option<u64>,
}Expand description
A model offered by a platform’s /v1/models endpoint, with optional cost
and context metadata where the platform provides it (e.g. OpenRouter).
Fields§
§id: String§prompt_price: Option<f64>Prompt price per token (USD), if the platform reports it. Lower = cheaper.
context: Option<u64>Context window in tokens, if reported.
Trait Implementations§
Source§impl Clone for DiscoveredModel
impl Clone for DiscoveredModel
Source§fn clone(&self) -> DiscoveredModel
fn clone(&self) -> DiscoveredModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredModel
impl RefUnwindSafe for DiscoveredModel
impl Send for DiscoveredModel
impl Sync for DiscoveredModel
impl Unpin for DiscoveredModel
impl UnsafeUnpin for DiscoveredModel
impl UnwindSafe for DiscoveredModel
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