pub enum ServiceTier {
Auto,
Default,
Flex,
Scale,
Priority,
}
Expand description
Specifies the processing type used for serving the request.
- If set to ‘auto’, then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use ‘default’.
- If set to ‘default’, then the requset will be processed with the standard pricing and performance for the selected model.
- If set to ‘flex’ or ‘priority’, then the request will be processed with the corresponding service tier. Contact sales to learn more about Priority processing.
- When not set, the default behavior is ‘auto’.
When the service_tier
parameter is set, the response body will include the service_tier
value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
Variants§
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceTier
impl Debug for ServiceTier
Source§impl Default for ServiceTier
impl Default for ServiceTier
Source§fn default() -> ServiceTier
fn default() -> ServiceTier
Returns the “default value” for a type. Read more
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§impl Serialize for ServiceTier
impl Serialize for ServiceTier
impl Copy 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 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