pub struct EndpointRateLimits {
pub rate_limit_by_ip: Option<bool>,
pub account: Option<i32>,
pub rps: Option<i32>,
pub rpm: Option<i32>,
pub rpd: Option<i32>,
}Expand description
Rate limits applied to an endpoint.
Fields§
§rate_limit_by_ip: Option<bool>Whether rate limits are applied per client IP instead of per endpoint.
account: Option<i32>Account-level rate limit, when applicable.
rps: Option<i32>Requests per second.
rpm: Option<i32>Requests per minute.
rpd: Option<i32>Requests per day.
Trait Implementations§
Source§impl Clone for EndpointRateLimits
impl Clone for EndpointRateLimits
Source§fn clone(&self) -> EndpointRateLimits
fn clone(&self) -> EndpointRateLimits
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 EndpointRateLimits
impl Debug for EndpointRateLimits
Source§impl<'de> Deserialize<'de> for EndpointRateLimits
impl<'de> Deserialize<'de> for EndpointRateLimits
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 EndpointRateLimits
impl RefUnwindSafe for EndpointRateLimits
impl Send for EndpointRateLimits
impl Sync for EndpointRateLimits
impl Unpin for EndpointRateLimits
impl UnsafeUnpin for EndpointRateLimits
impl UnwindSafe for EndpointRateLimits
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