pub struct ModelRoute {
pub model: String,
pub strategy: BalancingStrategy,
pub targets: Vec<Target>,
}Expand description
Maps a public model name to one or more upstream targets plus a strategy.
Fields§
§model: Stringpublic model name clients request, e.g. gpt-4o
strategy: BalancingStrategy§targets: Vec<Target>Trait Implementations§
Source§impl Clone for ModelRoute
impl Clone for ModelRoute
Source§fn clone(&self) -> ModelRoute
fn clone(&self) -> ModelRoute
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 ModelRoute
impl Debug for ModelRoute
Source§impl<'de> Deserialize<'de> for ModelRoute
impl<'de> Deserialize<'de> for ModelRoute
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 ModelRoute
impl RefUnwindSafe for ModelRoute
impl Send for ModelRoute
impl Sync for ModelRoute
impl Unpin for ModelRoute
impl UnsafeUnpin for ModelRoute
impl UnwindSafe for ModelRoute
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