pub struct Limits {
pub body: usize,
pub inflated: u64,
pub body_timeout: Duration,
}Expand description
The limits from configuration that the API applies to every request.
Fields§
§body: usizeThe most bytes a request body may hold, as received.
inflated: u64The most bytes gzip inflation may produce while a body is inspected.
body_timeout: DurationHow long a request body may take to arrive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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