pub struct CodecLimits {
pub max_buffer_bytes: u64,
pub max_value_bytes: u64,
pub max_body_bytes: u64,
pub max_line_bytes: u64,
pub max_part_bytes: u64,
pub max_parts: usize,
}Expand description
Explicit bounds required by every decoder and encoder.
Fields§
§max_buffer_bytes: u64Maximum incomplete input retained by a decoder.
max_value_bytes: u64Maximum encoded JSON value or SSE data event.
max_body_bytes: u64Maximum aggregate HTTP body bytes consumed or produced.
max_line_bytes: u64Maximum one line in NDJSON/SSE or one multipart header line.
max_part_bytes: u64Maximum one multipart part body.
max_parts: usizeMaximum multipart parts.
Trait Implementations§
Source§impl Clone for CodecLimits
impl Clone for CodecLimits
impl Copy for CodecLimits
Source§impl Debug for CodecLimits
impl Debug for CodecLimits
impl Eq for CodecLimits
Source§impl PartialEq for CodecLimits
impl PartialEq for CodecLimits
impl StructuralPartialEq for CodecLimits
Auto Trait Implementations§
impl Freeze for CodecLimits
impl RefUnwindSafe for CodecLimits
impl Send for CodecLimits
impl Sync for CodecLimits
impl Unpin for CodecLimits
impl UnsafeUnpin for CodecLimits
impl UnwindSafe for CodecLimits
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