pub struct MethodRateLimiter {
pub id: String,
pub interval: String,
pub methods: Vec<String>,
pub rate: i32,
pub status: String,
pub created: String,
}Expand description
A per-method rate limiter configured on an endpoint.
Fields§
§id: StringRate limiter identifier.
interval: StringInterval over which the rate applies (e.g. second, minute).
methods: Vec<String>RPC methods the limiter applies to.
rate: i32Maximum number of calls allowed per interval.
status: StringWhether the limiter is enabled or disabled.
created: StringCreation timestamp.
Trait Implementations§
Source§impl Clone for MethodRateLimiter
impl Clone for MethodRateLimiter
Source§fn clone(&self) -> MethodRateLimiter
fn clone(&self) -> MethodRateLimiter
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 MethodRateLimiter
impl Debug for MethodRateLimiter
Source§impl<'de> Deserialize<'de> for MethodRateLimiter
impl<'de> Deserialize<'de> for MethodRateLimiter
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 MethodRateLimiter
impl RefUnwindSafe for MethodRateLimiter
impl Send for MethodRateLimiter
impl Sync for MethodRateLimiter
impl Unpin for MethodRateLimiter
impl UnsafeUnpin for MethodRateLimiter
impl UnwindSafe for MethodRateLimiter
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