#[non_exhaustive]pub struct LoadedProviders {
pub models: ModelRegistry,
pub unplaced_prices: Vec<(String, String, Price)>,
pub system_one: Option<SystemOneClient>,
}Expand description
Everything a providers file configures.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.models: ModelRegistry§unplaced_prices: Vec<(String, String, Price)>Top level prices for providers this file does not configure:
(provider, model, price), for the host to place on its own providers
with ModelRegistry::place_prices.
system_one: Option<SystemOneClient>The TypeSafe System One client from a typesafe credentials entry.
Trait Implementations§
Source§impl Debug for LoadedProviders
impl Debug for LoadedProviders
Auto Trait Implementations§
impl !RefUnwindSafe for LoadedProviders
impl !UnwindSafe for LoadedProviders
impl Forget for LoadedProviders
impl Freeze for LoadedProviderswhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Arc<dyn ChatModel>>>: Freeze,
PhantomData<(String, String, Price)>: Freeze,
PhantomData<Bucket<String, String>>: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn CredentialSource> is !null: Freeze,
PhantomData<ArcInner<dyn CredentialSource>>: Freeze,
PhantomData<(String, String)>: Freeze,
*const ArcInner<OnceLock<Result<Client, String>>> is !null: Freeze,
PhantomData<ArcInner<OnceLock<Result<Client, String>>>>: Freeze,
impl Move for LoadedProviders
impl Send for LoadedProviders
impl Sync for LoadedProviders
impl Unpin for LoadedProviders
impl UnsafeUnpin for LoadedProviderswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Arc<dyn ChatModel>>>: UnsafeUnpin,
PhantomData<(String, String, Price)>: UnsafeUnpin,
PhantomData<Bucket<String, String>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn CredentialSource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CredentialSource>>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
*const ArcInner<OnceLock<Result<Client, String>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<OnceLock<Result<Client, String>>>>: UnsafeUnpin,
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