pub enum BodyPrintLimit {
Limited(usize),
Unlimited,
}Expand description
Specifies limitations on printing request bodies when logging requests. For some mock servers the bodies may be too large to reasonably print and it may be desirable to limit them.
Variants§
Limited(usize)
Maximum length of a body to print in bytes.
Unlimited
There is no limit to the size of a body that may be printed.
Trait Implementations§
Source§impl Clone for BodyPrintLimit
impl Clone for BodyPrintLimit
Source§fn clone(&self) -> BodyPrintLimit
fn clone(&self) -> BodyPrintLimit
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 moreSource§impl Debug for BodyPrintLimit
impl Debug for BodyPrintLimit
impl Copy for BodyPrintLimit
Auto Trait Implementations§
impl Freeze for BodyPrintLimit
impl RefUnwindSafe for BodyPrintLimit
impl Send for BodyPrintLimit
impl Sync for BodyPrintLimit
impl Unpin for BodyPrintLimit
impl UnwindSafe for BodyPrintLimit
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