pub struct Vendor {
pub id: String,
pub title: String,
pub inference: Inference,
pub credential_env: Option<String>,
}Expand description
A party that serves models: a remote API vendor or a local runtime. Not a “provider” — that word names the AI client tools this repository already adapts to (ADR 0024), and one word for two registries is how truths fork.
Fields§
§id: StringThe vendor id, unique in the catalogue.
title: StringThe human name.
inference: InferenceWhere inference runs: remote (an API over the network) or local (a runtime
on this machine). Typed here so routing’s local_only is data, not a name test.
credential_env: Option<String>The environment variable whose presence means a credential is configured. Only the name lives here, and only presence is ever reported — no code in this crate reads the value, and the environment cache refuses to hold one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vendor
impl<'de> Deserialize<'de> for Vendor
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 Vendor
impl JsonSchema for Vendor
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 Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnsafeUnpin for Vendor
impl UnwindSafe for Vendor
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