pub struct ProviderInfo {
pub id: String,
pub name: String,
pub category: ProviderCategory,
pub model_count: usize,
pub has_key: bool,
pub description: String,
pub env_key: String,
}Expand description
Summary of an LLM provider.
Fields§
§id: StringProvider identifier (e.g. “anthropic”, “openai”).
name: StringHuman-readable display name.
category: ProviderCategoryCategory for UI grouping.
model_count: usizeNumber of models available for this provider.
has_key: boolWhether an API key is currently configured.
description: StringShort description for tooltips / help text. Empty for unknown
providers that have no entry in [PROVIDER_META].
env_key: StringPrimary environment variable name for the API key. Empty for providers that do not use a single env var (e.g. AWS Bedrock uses a credential chain rather than a single API key var).
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<'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
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