pub struct CatalogModel {
pub spec: ModelSpec,
pub backend: BackendConfig,
pub auth_error: Option<String>,
}Expand description
One usable catalog entry: spec plus the backend (gateway + credentials) that serves it.
Fields§
§spec: ModelSpec§backend: BackendConfig§auth_error: Option<String>Set when the auth source did not resolve (env var unset, auth file
unreadable). Reported by ModelCatalog::get when the model is
actually used — configuring a model without its credential is fine
until then.
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§fn clone(&self) -> CatalogModel
fn clone(&self) -> CatalogModel
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 CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
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