pub struct Provider {
pub id: &'static str,
pub name: &'static str,
pub env_var: &'static str,
pub key_prefix: Option<&'static str>,
pub category: ProviderCategory,
pub requires_key: bool,
pub description: &'static str,
}Expand description
Provider metadata.
Fields§
§id: &'static strUnique identifier (e.g., “anthropic”, “openai”)
name: &'static strHuman-readable name (e.g., “Anthropic Claude”)
env_var: &'static strEnvironment variable name (e.g., “ANTHROPIC_API_KEY”)
key_prefix: Option<&'static str>Expected key prefix for validation (e.g., “sk-ant-”)
category: ProviderCategoryProvider category
requires_key: boolWhether this provider requires an API key
description: &'static strDescription of the provider
Trait Implementations§
impl Copy for Provider
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl UnwindSafe for Provider
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