pub struct PriorityLevelConfigurationSpec {
pub type: Option<String>,
pub limited: Option<LimitedPriorityLevelConfiguration>,
pub exempt: Option<ExemptPriorityLevelConfiguration>,
}Expand description
PriorityLevelConfigurationSpec specifies the configuration of a priority level. +union
Fields§
§type: Option<String>type indicates whether this priority level is subject to
limitation on request execution. A value of "Exempt" means
that requests of this priority level are not subject to a limit
(and thus are never queued) and do not detract from the
capacity made available to other priority levels. A value of
"Limited" means that (a) requests of this priority level
are subject to limits and (b) some of the server’s limited
capacity is made available exclusively to this priority level.
Required.
+unionDiscriminator
limited: Option<LimitedPriorityLevelConfiguration>limited specifies how requests are handled for a Limited priority level.
This field must be non-empty if and only if type is "Limited".
+optional
exempt: Option<ExemptPriorityLevelConfiguration>exempt specifies how requests are handled for an exempt priority level.
This field MUST be empty if type is "Limited".
This field MAY be non-empty if type is "Exempt".
If empty and type is "Exempt" then the default values
for ExemptPriorityLevelConfiguration apply.
+optional
Implementations§
Trait Implementations§
Source§impl Clone for PriorityLevelConfigurationSpec
impl Clone for PriorityLevelConfigurationSpec
Source§fn clone(&self) -> PriorityLevelConfigurationSpec
fn clone(&self) -> PriorityLevelConfigurationSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for PriorityLevelConfigurationSpec
impl Message for PriorityLevelConfigurationSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for PriorityLevelConfigurationSpec
impl PartialEq for PriorityLevelConfigurationSpec
Source§fn eq(&self, other: &PriorityLevelConfigurationSpec) -> bool
fn eq(&self, other: &PriorityLevelConfigurationSpec) -> bool
self and other values to be equal, and is used by ==.