pub struct RepeatToolLimitConfig {
pub nudge_after: usize,
pub block_after: usize,
pub nudge_message: String,
pub block_message: String,
}Expand description
Configuration for RepeatToolLimitMiddleware.
Fields§
§nudge_after: usizeIdentical-call count that triggers the one-time nudge. 0 disables
nudging (blocking still applies at block_after).
block_after: usizeIdentical-call count that hard-blocks the pending calls.
nudge_message: String§block_message: StringTrait Implementations§
Source§impl Clone for RepeatToolLimitConfig
impl Clone for RepeatToolLimitConfig
Source§fn clone(&self) -> RepeatToolLimitConfig
fn clone(&self) -> RepeatToolLimitConfig
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 RepeatToolLimitConfig
impl Debug for RepeatToolLimitConfig
Auto Trait Implementations§
impl Freeze for RepeatToolLimitConfig
impl RefUnwindSafe for RepeatToolLimitConfig
impl Send for RepeatToolLimitConfig
impl Sync for RepeatToolLimitConfig
impl Unpin for RepeatToolLimitConfig
impl UnsafeUnpin for RepeatToolLimitConfig
impl UnwindSafe for RepeatToolLimitConfig
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