pub struct ModelResolution {
pub requested: Option<String>,
pub resolved: ModelInfo,
pub used_fallback: bool,
pub fallback_chain: Vec<String>,
}Expand description
The result of resolving a user-requested model name to a concrete model entry.
Contains the resolved ModelInfo, whether a fallback was used, and the
chain of resolution strategies that were attempted.
Fields§
§requested: Option<String>The original model name requested by the user, if any.
resolved: ModelInfoThe concrete model that was resolved.
used_fallback: boolWhether a fallback was used because the requested model was not found.
fallback_chain: Vec<String>The ordered list of resolution strategies that were attempted.
Trait Implementations§
Source§impl Clone for ModelResolution
impl Clone for ModelResolution
Source§fn clone(&self) -> ModelResolution
fn clone(&self) -> ModelResolution
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 ModelResolution
impl Debug for ModelResolution
Source§impl<'de> Deserialize<'de> for ModelResolution
impl<'de> Deserialize<'de> for ModelResolution
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 ModelResolution
impl RefUnwindSafe for ModelResolution
impl Send for ModelResolution
impl Sync for ModelResolution
impl Unpin for ModelResolution
impl UnsafeUnpin for ModelResolution
impl UnwindSafe for ModelResolution
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