pub struct RateLimitSpec {
pub tool: String,
pub max_calls: u32,
pub window_ms: u64,
}Expand description
Per-tool rate limit for the governance ABI.
Maps to crate::governance::rate_limit::RateLimit.
Fields§
§tool: String§max_calls: u32§window_ms: u64Trait Implementations§
Source§impl Clone for RateLimitSpec
impl Clone for RateLimitSpec
Source§fn clone(&self) -> RateLimitSpec
fn clone(&self) -> RateLimitSpec
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 RateLimitSpec
impl Debug for RateLimitSpec
Source§impl<'de> Deserialize<'de> for RateLimitSpec
impl<'de> Deserialize<'de> for RateLimitSpec
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 RateLimitSpec
impl RefUnwindSafe for RateLimitSpec
impl Send for RateLimitSpec
impl Sync for RateLimitSpec
impl Unpin for RateLimitSpec
impl UnsafeUnpin for RateLimitSpec
impl UnwindSafe for RateLimitSpec
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