pub struct RateLimitObservation {
pub kind: RateLimitKind,
pub window: String,
pub limit: Option<u64>,
pub remaining: Option<u64>,
pub reset: Option<String>,
}Expand description
Latest upstream rate-limit observation exposed to router plugins.
Fields§
§kind: RateLimitKindObserved rate-limit kind.
window: StringProvider-defined rate-limit window label.
limit: Option<u64>Optional maximum quota for the window.
remaining: Option<u64>Optional remaining quota for the window.
reset: Option<String>Optional provider reset timestamp or duration string.
Trait Implementations§
Source§impl Clone for RateLimitObservation
impl Clone for RateLimitObservation
Source§fn clone(&self) -> RateLimitObservation
fn clone(&self) -> RateLimitObservation
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 RateLimitObservation
impl Debug for RateLimitObservation
Source§impl<'de> Deserialize<'de> for RateLimitObservation
impl<'de> Deserialize<'de> for RateLimitObservation
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
impl Eq for RateLimitObservation
Source§impl PartialEq for RateLimitObservation
impl PartialEq for RateLimitObservation
Source§fn eq(&self, other: &RateLimitObservation) -> bool
fn eq(&self, other: &RateLimitObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitObservation
impl Serialize for RateLimitObservation
impl StructuralPartialEq for RateLimitObservation
Auto Trait Implementations§
impl Freeze for RateLimitObservation
impl RefUnwindSafe for RateLimitObservation
impl Send for RateLimitObservation
impl Sync for RateLimitObservation
impl Unpin for RateLimitObservation
impl UnsafeUnpin for RateLimitObservation
impl UnwindSafe for RateLimitObservation
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