pub struct LimitResponse {
pub queuing: Option<QueuingConfiguration>,
pub type_: String,
}
Expand description
LimitResponse defines how to handle requests that can not be executed right now.
Fields§
§queuing: Option<QueuingConfiguration>
queuing
holds the configuration parameters for queuing. This field may be non-empty only if type
is "Queue"
.
type_: String
type
is “Queue” or “Reject”. “Queue” means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. “Reject” means that requests that can not be executed upon arrival are rejected. Required.
Trait Implementations§
Source§impl Clone for LimitResponse
impl Clone for LimitResponse
Source§fn clone(&self) -> LimitResponse
fn clone(&self) -> LimitResponse
Returns a copy 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 LimitResponse
impl Debug for LimitResponse
Source§impl DeepMerge for LimitResponse
impl DeepMerge for LimitResponse
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for LimitResponse
impl Default for LimitResponse
Source§fn default() -> LimitResponse
fn default() -> LimitResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LimitResponse
impl<'de> Deserialize<'de> for LimitResponse
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 LimitResponse
impl PartialEq for LimitResponse
Source§impl Serialize for LimitResponse
impl Serialize for LimitResponse
impl StructuralPartialEq for LimitResponse
Auto Trait Implementations§
impl Freeze for LimitResponse
impl RefUnwindSafe for LimitResponse
impl Send for LimitResponse
impl Sync for LimitResponse
impl Unpin for LimitResponse
impl UnwindSafe for LimitResponse
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