pub struct ProviderMeta {
pub id: &'static str,
pub name: &'static str,
pub env_vars: &'static [&'static str],
pub api_base_url: Option<&'static str>,
pub docs_url: &'static str,
pub api_style: ApiStyle,
}Expand description
Metadata about an LLM provider.
Fields§
§id: &'static strProvider identifier (e.g. “anthropic”, “deepseek”).
name: &'static strHuman-readable name (e.g. “Anthropic”, “DeepSeek”).
env_vars: &'static [&'static str]Environment variable names for API key resolution, in priority order.
api_base_url: Option<&'static str>Base URL for API requests. None for native providers that hardcode their URL.
docs_url: &'static strURL where users can get an API key (shown in welcome flow).
api_style: ApiStyleWhich API protocol this provider uses.
Trait Implementations§
Source§impl Clone for ProviderMeta
impl Clone for ProviderMeta
Source§fn clone(&self) -> ProviderMeta
fn clone(&self) -> ProviderMeta
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 moreAuto Trait Implementations§
impl Freeze for ProviderMeta
impl RefUnwindSafe for ProviderMeta
impl Send for ProviderMeta
impl Sync for ProviderMeta
impl Unpin for ProviderMeta
impl UnsafeUnpin for ProviderMeta
impl UnwindSafe for ProviderMeta
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