pub struct CatalogProviderEntry {
pub id: String,
pub display_name: String,
pub aliases: Vec<String>,
pub protocol: CatalogProtocol,
pub env_key: Option<String>,
pub extra_env_keys: Vec<String>,
pub base_url: Option<String>,
pub extra_headers: Vec<(String, String)>,
pub category: String,
pub description: String,
pub default_enabled: bool,
}Expand description
Provider-level metadata snapshot.
Fields§
§id: StringProvider identifier (e.g. "anthropic").
display_name: StringHuman-readable provider name.
aliases: Vec<String>Alternate identifiers accepted on the CLI/config.
protocol: CatalogProtocolDefault wire protocol for this provider’s models.
env_key: Option<String>Primary environment variable holding the API key (e.g. ANTHROPIC_API_KEY).
extra_env_keys: Vec<String>Additional environment variables the provider requires.
base_url: Option<String>API base URL override (None = protocol default).
extra_headers: Vec<(String, String)>Extra HTTP headers appended to every request.
category: Stringcategory and description may be empty (models.dev does not
provide them). The UI uses alphabet sort as fallback.
description: StringFree-form provider description (may be empty; models.dev omits it).
default_enabled: boolWhether the provider is enabled by default in the UI.
Trait Implementations§
Source§impl Clone for CatalogProviderEntry
impl Clone for CatalogProviderEntry
Source§fn clone(&self) -> CatalogProviderEntry
fn clone(&self) -> CatalogProviderEntry
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 CatalogProviderEntry
impl Debug for CatalogProviderEntry
Source§impl<'de> Deserialize<'de> for CatalogProviderEntry
impl<'de> Deserialize<'de> for CatalogProviderEntry
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 CatalogProviderEntry
impl RefUnwindSafe for CatalogProviderEntry
impl Send for CatalogProviderEntry
impl Sync for CatalogProviderEntry
impl Unpin for CatalogProviderEntry
impl UnsafeUnpin for CatalogProviderEntry
impl UnwindSafe for CatalogProviderEntry
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