pub struct ModelConfiguration {
pub version: Option<String>,
pub models: Vec<ModelSpec>,
pub providers: HashMap<String, ProviderConfig>,
}Expand description
Complete model configuration.
Fields§
§version: Option<String>Schema version declared by the source YAML, if any.
models: Vec<ModelSpec>List of all available models.
providers: HashMap<String, ProviderConfig>Provider-specific configurations.
Trait Implementations§
Source§impl Clone for ModelConfiguration
impl Clone for ModelConfiguration
Source§fn clone(&self) -> ModelConfiguration
fn clone(&self) -> ModelConfiguration
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 moreSource§impl Debug for ModelConfiguration
impl Debug for ModelConfiguration
Source§impl<'de> Deserialize<'de> for ModelConfiguration
impl<'de> Deserialize<'de> for ModelConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelConfiguration
impl RefUnwindSafe for ModelConfiguration
impl Send for ModelConfiguration
impl Sync for ModelConfiguration
impl Unpin for ModelConfiguration
impl UnsafeUnpin for ModelConfiguration
impl UnwindSafe for ModelConfiguration
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