pub struct ModelSelection {
pub id: String,
pub config: Option<HashMap<String, AnyValue>>,
}Expand description
A model selection: the chosen model ID together with any model-specific configuration values whose keys correspond to the model’s {@link SessionModelInfo.configSchema}.
Fields§
§id: StringModel identifier
config: Option<HashMap<String, AnyValue>>Model-specific configuration values. Values are JSON primitives: most pickers produce strings, but some (e.g. a numeric context-size picker) produce numbers or booleans, which are carried through as-is.
Trait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
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 ModelSelection
impl Debug for ModelSelection
Source§impl<'de> Deserialize<'de> for ModelSelection
impl<'de> Deserialize<'de> for ModelSelection
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
Source§impl PartialEq for ModelSelection
impl PartialEq for ModelSelection
Source§fn eq(&self, other: &ModelSelection) -> bool
fn eq(&self, other: &ModelSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelSelection
impl Serialize for ModelSelection
impl StructuralPartialEq for ModelSelection
Auto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnsafeUnpin for ModelSelection
impl UnwindSafe for ModelSelection
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