pub struct ProviderInfo {
pub id: String,
pub name: String,
pub api_base_url: Option<String>,
pub protocol: Option<CatalogProviderProtocol>,
pub env_var: Option<String>,
pub doc_url: Option<String>,
pub source: ProviderSource,
}Expand description
Lightweight provider metadata for catalog queries.
Unlike [talos_config::ProviderConfig] (which includes credentials and
protocol details), this struct carries only the catalog-level identity and
display information needed by /model and /connect pickers.
Fields§
§id: StringProvider identifier (e.g., “anthropic”, “openai”).
name: StringHuman-readable display name.
api_base_url: Option<String>Default API base URL, if known.
protocol: Option<CatalogProviderProtocol>API protocol, if known from catalog metadata.
env_var: Option<String>Environment variable name for the API key, if conventional.
doc_url: Option<String>Documentation URL, if known.
source: ProviderSourceSource of this provider entry.
Trait Implementations§
Source§impl Clone for ProviderInfo
impl Clone for ProviderInfo
Source§fn clone(&self) -> ProviderInfo
fn clone(&self) -> ProviderInfo
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 ProviderInfo
impl Debug for ProviderInfo
Source§impl Default for ProviderInfo
impl Default for ProviderInfo
Source§fn default() -> ProviderInfo
fn default() -> ProviderInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderInfo
impl<'de> Deserialize<'de> for ProviderInfo
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
impl Eq for ProviderInfo
Source§impl JsonSchema for ProviderInfo
impl JsonSchema for ProviderInfo
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 moreSource§impl PartialEq for ProviderInfo
impl PartialEq for ProviderInfo
Source§impl Serialize for ProviderInfo
impl Serialize for ProviderInfo
impl StructuralPartialEq for ProviderInfo
Auto Trait Implementations§
impl Freeze for ProviderInfo
impl RefUnwindSafe for ProviderInfo
impl Send for ProviderInfo
impl Sync for ProviderInfo
impl Unpin for ProviderInfo
impl UnsafeUnpin for ProviderInfo
impl UnwindSafe for ProviderInfo
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