pub struct ValidationRateLimiter { /* private fields */ }Expand description
Validation-specific rate limiter with per-dimension tracking
Implementations§
Source§impl ValidationRateLimiter
impl ValidationRateLimiter
Sourcepub fn new(config: ValidationRateLimitingConfig) -> Self
pub fn new(config: ValidationRateLimitingConfig) -> Self
Create a new validation rate limiter with the given configuration
Sourcepub fn check_validation_errors(&self, key: &str) -> Result<(), FraiseQLError>
pub fn check_validation_errors(&self, key: &str) -> Result<(), FraiseQLError>
Check rate limit for validation errors
Sourcepub fn check_depth_errors(&self, key: &str) -> Result<(), FraiseQLError>
pub fn check_depth_errors(&self, key: &str) -> Result<(), FraiseQLError>
Check rate limit for depth errors
Sourcepub fn check_complexity_errors(&self, key: &str) -> Result<(), FraiseQLError>
pub fn check_complexity_errors(&self, key: &str) -> Result<(), FraiseQLError>
Check rate limit for complexity errors
Sourcepub fn check_malformed_errors(&self, key: &str) -> Result<(), FraiseQLError>
pub fn check_malformed_errors(&self, key: &str) -> Result<(), FraiseQLError>
Check rate limit for malformed errors
Sourcepub fn check_async_validation_errors(
&self,
key: &str,
) -> Result<(), FraiseQLError>
pub fn check_async_validation_errors( &self, key: &str, ) -> Result<(), FraiseQLError>
Check rate limit for async validation errors
Trait Implementations§
Source§impl Clone for ValidationRateLimiter
impl Clone for ValidationRateLimiter
Source§fn clone(&self) -> ValidationRateLimiter
fn clone(&self) -> ValidationRateLimiter
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 moreAuto Trait Implementations§
impl Freeze for ValidationRateLimiter
impl RefUnwindSafe for ValidationRateLimiter
impl Send for ValidationRateLimiter
impl Sync for ValidationRateLimiter
impl Unpin for ValidationRateLimiter
impl UnsafeUnpin for ValidationRateLimiter
impl UnwindSafe for ValidationRateLimiter
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