pub struct DynamicRateLimitPathRule {
pub path: String,
pub provider: Arc<dyn RateLimitRuleProvider>,
}Fields§
§path: String§provider: Arc<dyn RateLimitRuleProvider>Implementations§
Source§impl DynamicRateLimitPathRule
impl DynamicRateLimitPathRule
pub fn new<P>(path: impl Into<String>, provider: P) -> Selfwhere
P: RateLimitRuleProvider,
Trait Implementations§
Source§impl Clone for DynamicRateLimitPathRule
impl Clone for DynamicRateLimitPathRule
Source§fn clone(&self) -> DynamicRateLimitPathRule
fn clone(&self) -> DynamicRateLimitPathRule
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 moreAuto Trait Implementations§
impl Freeze for DynamicRateLimitPathRule
impl !RefUnwindSafe for DynamicRateLimitPathRule
impl Send for DynamicRateLimitPathRule
impl Sync for DynamicRateLimitPathRule
impl Unpin for DynamicRateLimitPathRule
impl UnsafeUnpin for DynamicRateLimitPathRule
impl !UnwindSafe for DynamicRateLimitPathRule
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