pub enum ModelRoute<'a> {
Bare(&'a str),
Profiled {
model: &'a str,
profile: &'a InferenceProfile,
},
ProfileNotFound {
requested: &'a str,
suffix: &'a str,
},
}Expand description
What a requested model id turned out to mean.
Variants§
Bare(&'a str)
The id names a model directly; no profile applies.
Also the outcome when neither the full id nor its base resolves — the request continues to the normal model-not-found path rather than being second-guessed here.
Profiled
The id named a model plus a configured profile.
Fields
§
profile: &'a InferenceProfileThe selected profile.
ProfileNotFound
The base names a real model but the suffix matches no configured profile.
Trait Implementations§
Source§impl<'a> Clone for ModelRoute<'a>
impl<'a> Clone for ModelRoute<'a>
Source§fn clone(&self) -> ModelRoute<'a>
fn clone(&self) -> ModelRoute<'a>
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<'a> Debug for ModelRoute<'a>
impl<'a> Debug for ModelRoute<'a>
Source§impl<'a> PartialEq for ModelRoute<'a>
impl<'a> PartialEq for ModelRoute<'a>
Source§fn eq(&self, other: &ModelRoute<'a>) -> bool
fn eq(&self, other: &ModelRoute<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ModelRoute<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModelRoute<'a>
impl<'a> RefUnwindSafe for ModelRoute<'a>
impl<'a> Send for ModelRoute<'a>
impl<'a> Sync for ModelRoute<'a>
impl<'a> Unpin for ModelRoute<'a>
impl<'a> UnsafeUnpin for ModelRoute<'a>
impl<'a> UnwindSafe for ModelRoute<'a>
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