pub struct ProviderEntry { /* private fields */ }Expand description
A provider, the model IDs it exposes, and its session capability configuration.
Implementations§
Source§impl ProviderEntry
impl ProviderEntry
pub fn new( provider: Arc<dyn LlmProvider>, models: Vec<ModelInfo>, capabilities: SessionCapabilitiesConfig, ) -> Self
pub fn provider(&self) -> &Arc<dyn LlmProvider> ⓘ
pub fn models(&self) -> &[ModelInfo]
pub fn capabilities(&self) -> SessionCapabilitiesConfig
Trait Implementations§
Source§impl Clone for ProviderEntry
impl Clone for ProviderEntry
Source§fn clone(&self) -> ProviderEntry
fn clone(&self) -> ProviderEntry
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 !RefUnwindSafe for ProviderEntry
impl !UnwindSafe for ProviderEntry
impl Freeze for ProviderEntry
impl Send for ProviderEntry
impl Sync for ProviderEntry
impl Unpin for ProviderEntry
impl UnsafeUnpin for ProviderEntry
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