pub struct ProviderRegistry { /* private fields */ }Expand description
Registry of known LLM providers.
Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
Sourcepub fn with_builtins() -> Self
pub fn with_builtins() -> Self
Registry pre-populated with all built-in providers.
Sourcepub fn find(&self, id: &str) -> Option<&ProviderMeta>
pub fn find(&self, id: &str) -> Option<&ProviderMeta>
Find a provider by its id (e.g. “anthropic”, “deepseek”).
Sourcepub fn list(&self) -> &[ProviderMeta]
pub fn list(&self) -> &[ProviderMeta]
All registered providers.
Trait Implementations§
Source§impl Clone for ProviderRegistry
impl Clone for ProviderRegistry
Source§fn clone(&self) -> ProviderRegistry
fn clone(&self) -> ProviderRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 ProviderRegistry
impl Debug for ProviderRegistry
Auto Trait Implementations§
impl Freeze for ProviderRegistry
impl RefUnwindSafe for ProviderRegistry
impl Send for ProviderRegistry
impl Sync for ProviderRegistry
impl Unpin for ProviderRegistry
impl UnsafeUnpin for ProviderRegistry
impl UnwindSafe for ProviderRegistry
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