pub struct DiscoveredModel {
pub id: String,
pub name: String,
pub provider_id: String,
pub context_length: Option<u64>,
pub max_output_tokens: Option<u64>,
pub input_cost_per_million: Option<f64>,
pub output_cost_per_million: Option<f64>,
}Expand description
A discovered model with metadata.
Fields§
§id: StringModel ID (e.g., “gpt-4o”).
name: StringDisplay name.
provider_id: StringProvider ID (e.g., “openai”).
context_length: Option<u64>Context window size.
max_output_tokens: Option<u64>Maximum output tokens.
input_cost_per_million: Option<f64>Input cost per million tokens (USD).
output_cost_per_million: Option<f64>Output cost per million tokens (USD).
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 · 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 DiscoveredModel
impl Debug for DiscoveredModel
Source§impl<'de> Deserialize<'de> for DiscoveredModel
impl<'de> Deserialize<'de> for DiscoveredModel
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 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