pub struct RouterProfile {
pub high: RoutedTierConfig,
pub medium: RoutedTierConfig,
pub low: RoutedTierConfig,
}Expand description
A named routing profile mapping tiers to model configs.
Fields§
§high: RoutedTierConfigHigh-tier model configuration.
medium: RoutedTierConfigMedium-tier model configuration.
low: RoutedTierConfigLow-tier model configuration.
Implementations§
Source§impl RouterProfile
impl RouterProfile
Sourcepub fn tier_config(&self, tier: RouterTier) -> &RoutedTierConfig
pub fn tier_config(&self, tier: RouterTier) -> &RoutedTierConfig
Get the tier config for a given tier.
Trait Implementations§
Source§impl Clone for RouterProfile
impl Clone for RouterProfile
Source§fn clone(&self) -> RouterProfile
fn clone(&self) -> RouterProfile
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 RouterProfile
impl Debug for RouterProfile
Source§impl<'de> Deserialize<'de> for RouterProfile
impl<'de> Deserialize<'de> for RouterProfile
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 RouterProfile
impl RefUnwindSafe for RouterProfile
impl Send for RouterProfile
impl Sync for RouterProfile
impl Unpin for RouterProfile
impl UnsafeUnpin for RouterProfile
impl UnwindSafe for RouterProfile
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