pub struct BodyLimiterConfig {
pub body_max_size: usize,
}Expand description
Configuration for the BodyLimiterLayer
Fields§
§body_max_size: usizeMaximum size of the request body in bytes
Trait Implementations§
Source§impl Clone for BodyLimiterConfig
impl Clone for BodyLimiterConfig
Source§fn clone(&self) -> BodyLimiterConfig
fn clone(&self) -> BodyLimiterConfig
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 BodyLimiterConfig
impl RefUnwindSafe for BodyLimiterConfig
impl Send for BodyLimiterConfig
impl Sync for BodyLimiterConfig
impl Unpin for BodyLimiterConfig
impl UnsafeUnpin for BodyLimiterConfig
impl UnwindSafe for BodyLimiterConfig
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