#[non_exhaustive]pub enum TierSelectionStrategy {
PreferenceOrder,
RoundRobin,
LowestCost,
Random,
}Expand description
Strategy for selecting a model within a tier.
Controls how the router picks among multiple models in a single tier.
Serializes/deserializes as snake_case strings (e.g., "preference_order").
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PreferenceOrder
Use models in the order listed (first available wins).
RoundRobin
Rotate through models in round-robin fashion.
LowestCost
Pick the cheapest model in the tier.
Random
Pick a random model from the tier.
Trait Implementations§
Source§impl Clone for TierSelectionStrategy
impl Clone for TierSelectionStrategy
Source§fn clone(&self) -> TierSelectionStrategy
fn clone(&self) -> TierSelectionStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 TierSelectionStrategy
impl Debug for TierSelectionStrategy
Source§impl<'de> Deserialize<'de> for TierSelectionStrategy
impl<'de> Deserialize<'de> for TierSelectionStrategy
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 TierSelectionStrategy
impl PartialEq for TierSelectionStrategy
Source§impl Serialize for TierSelectionStrategy
impl Serialize for TierSelectionStrategy
impl Eq for TierSelectionStrategy
impl StructuralPartialEq for TierSelectionStrategy
Auto Trait Implementations§
impl Freeze for TierSelectionStrategy
impl RefUnwindSafe for TierSelectionStrategy
impl Send for TierSelectionStrategy
impl Sync for TierSelectionStrategy
impl Unpin for TierSelectionStrategy
impl UnsafeUnpin for TierSelectionStrategy
impl UnwindSafe for TierSelectionStrategy
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