#[non_exhaustive]pub enum ServiceTier {
Auto,
Default,
Flex,
Priority,
Scale,
}Expand description
OpenAI service-tier routing — cost / latency knob shared by both Chat Completions and Responses APIs. OpenAI-specific (no other vendor exposes a comparable per-request routing channel).
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.
Auto
Vendor picks the tier (default behaviour when the field is
omitted; supplying Auto makes the choice explicit).
Default
Standard processing tier — vendor’s default capacity pool.
Flex
Cheaper async tier with relaxed latency SLO (~50% cost cut).
Priority
Reserved-capacity tier for latency-bound enterprise workflows.
Scale
High-throughput sustained-traffic tier.
Trait Implementations§
Source§impl Clone for ServiceTier
impl Clone for ServiceTier
Source§fn clone(&self) -> ServiceTier
fn clone(&self) -> ServiceTier
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 ServiceTier
impl Debug for ServiceTier
Source§impl<'de> Deserialize<'de> for ServiceTier
impl<'de> Deserialize<'de> for ServiceTier
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 ServiceTier
impl PartialEq for ServiceTier
Source§fn eq(&self, other: &ServiceTier) -> bool
fn eq(&self, other: &ServiceTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceTier
impl Serialize for ServiceTier
impl Copy for ServiceTier
impl Eq for ServiceTier
impl StructuralPartialEq for ServiceTier
Auto Trait Implementations§
impl Freeze for ServiceTier
impl RefUnwindSafe for ServiceTier
impl Send for ServiceTier
impl Sync for ServiceTier
impl Unpin for ServiceTier
impl UnsafeUnpin for ServiceTier
impl UnwindSafe for ServiceTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.