pub struct RateLimitResultPayload {
pub type: Option<String>,
pub requested_amount: Option<f64>,
pub allowed_amount: Option<f64>,
pub period: Option<f64>,
pub remaining_amount: Option<f64>,
pub reset: Option<f64>,
}Fields§
§type: Option<String>What is being rate limited.
requested_amount: Option<f64>The requested quantity for this type of limit.
allowed_amount: Option<f64>The total allowed quantity for this type of limit.
period: Option<f64>The period in which the rate limit is fully replenished in ms.
remaining_amount: Option<f64>The remaining quantity for this type of limit after this request.
reset: Option<f64>The timestamp after the rate limit is fully replenished as a UNIX timestamp.
Trait Implementations§
Source§impl Clone for RateLimitResultPayload
impl Clone for RateLimitResultPayload
Source§fn clone(&self) -> RateLimitResultPayload
fn clone(&self) -> RateLimitResultPayload
Returns a duplicate 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 RateLimitResultPayload
impl Debug for RateLimitResultPayload
Source§impl Default for RateLimitResultPayload
impl Default for RateLimitResultPayload
Source§fn default() -> RateLimitResultPayload
fn default() -> RateLimitResultPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitResultPayloadwhere
RateLimitResultPayload: Default,
impl<'de> Deserialize<'de> for RateLimitResultPayloadwhere
RateLimitResultPayload: Default,
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
Auto Trait Implementations§
impl Freeze for RateLimitResultPayload
impl RefUnwindSafe for RateLimitResultPayload
impl Send for RateLimitResultPayload
impl Sync for RateLimitResultPayload
impl Unpin for RateLimitResultPayload
impl UnwindSafe for RateLimitResultPayload
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