pub enum ProviderModels {
Dynamic,
Static(Vec<ProviderModelConfig>),
}Expand description
Model list of a registration: "dynamic" (host calls the component’s list-models) or a
static list.
Variants§
Dynamic
Models come from list-models (crate::ModelRegistry::set_provider_models).
Static(Vec<ProviderModelConfig>)
Static models.
Trait Implementations§
Source§impl Clone for ProviderModels
impl Clone for ProviderModels
Source§impl Debug for ProviderModels
impl Debug for ProviderModels
Source§impl Default for ProviderModels
impl Default for ProviderModels
Source§impl<'de> Deserialize<'de> for ProviderModels
impl<'de> Deserialize<'de> for ProviderModels
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProviderModels
impl PartialEq for ProviderModels
Source§impl Serialize for ProviderModels
impl Serialize for ProviderModels
impl StructuralPartialEq for ProviderModels
Auto Trait Implementations§
impl Freeze for ProviderModels
impl RefUnwindSafe for ProviderModels
impl Send for ProviderModels
impl Sync for ProviderModels
impl Unpin for ProviderModels
impl UnsafeUnpin for ProviderModels
impl UnwindSafe for ProviderModels
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