pub struct RateLimitEnvelope {
pub error: String,
pub limit_type: String,
pub tier: String,
pub limit: u32,
pub remaining: u32,
pub upgrade: UpgradeInfo,
}Expand description
Parsed body of a 429 response carrying a tier-cap envelope.
Surfaced via AxonFlowError::RateLimited.
Fields§
§error: String§limit_type: String§tier: String§limit: u32§remaining: u32§upgrade: UpgradeInfoTrait Implementations§
Source§impl Clone for RateLimitEnvelope
impl Clone for RateLimitEnvelope
Source§fn clone(&self) -> RateLimitEnvelope
fn clone(&self) -> RateLimitEnvelope
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 RateLimitEnvelope
impl Debug for RateLimitEnvelope
Source§impl Default for RateLimitEnvelope
impl Default for RateLimitEnvelope
Source§fn default() -> RateLimitEnvelope
fn default() -> RateLimitEnvelope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitEnvelope
impl<'de> Deserialize<'de> for RateLimitEnvelope
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 RateLimitEnvelope
impl PartialEq for RateLimitEnvelope
Source§fn eq(&self, other: &RateLimitEnvelope) -> bool
fn eq(&self, other: &RateLimitEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitEnvelope
impl Serialize for RateLimitEnvelope
impl StructuralPartialEq for RateLimitEnvelope
Auto Trait Implementations§
impl Freeze for RateLimitEnvelope
impl RefUnwindSafe for RateLimitEnvelope
impl Send for RateLimitEnvelope
impl Sync for RateLimitEnvelope
impl Unpin for RateLimitEnvelope
impl UnsafeUnpin for RateLimitEnvelope
impl UnwindSafe for RateLimitEnvelope
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