pub struct ProviderModel {
pub id: ModelId,
pub aliases: Vec<ModelId>,
pub upstream_model: Option<String>,
pub pricing: ModelPricing,
pub capabilities: ModelCapabilities,
pub limits: ModelLimits,
}Expand description
One model served by a provider: identity, routing, and economics.
A model’s full description lives here exactly once: identity and routing
(id, aliases, upstream_model, pricing) alongside agent-side capabilities
and limits.
Fields§
§id: ModelId§aliases: Vec<ModelId>§upstream_model: Option<String>Vendor-side model name to send upstream when it differs from
Self::id (the external-facing name). None forwards id
unchanged.
pricing: ModelPricing§capabilities: ModelCapabilities§limits: ModelLimitsImplementations§
Trait Implementations§
Source§impl Clone for ProviderModel
impl Clone for ProviderModel
Source§fn clone(&self) -> ProviderModel
fn clone(&self) -> ProviderModel
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 moreSource§impl Debug for ProviderModel
impl Debug for ProviderModel
Source§impl<'de> Deserialize<'de> for ProviderModel
impl<'de> Deserialize<'de> for ProviderModel
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
Source§impl JsonSchema for ProviderModel
impl JsonSchema for ProviderModel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ProviderModel
impl RefUnwindSafe for ProviderModel
impl Send for ProviderModel
impl Sync for ProviderModel
impl Unpin for ProviderModel
impl UnsafeUnpin for ProviderModel
impl UnwindSafe for ProviderModel
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