pub struct ResponseLimits {
pub input_bytes: usize,
pub decoded_bytes: usize,
}Expand description
Caller-owned bounds for input parsing and decoded byte allocation.
Fields§
§input_bytes: usizeMaximum complete input length, including JSON metadata or the hex label.
decoded_bytes: usizeMaximum decoded byte length, independent of the input allowance.
Trait Implementations§
Source§impl Clone for ResponseLimits
impl Clone for ResponseLimits
impl Copy for ResponseLimits
Source§impl Debug for ResponseLimits
impl Debug for ResponseLimits
impl Eq for ResponseLimits
Source§impl PartialEq for ResponseLimits
impl PartialEq for ResponseLimits
impl StructuralPartialEq for ResponseLimits
Auto Trait Implementations§
impl Freeze for ResponseLimits
impl RefUnwindSafe for ResponseLimits
impl Send for ResponseLimits
impl Sync for ResponseLimits
impl Unpin for ResponseLimits
impl UnsafeUnpin for ResponseLimits
impl UnwindSafe for ResponseLimits
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