pub struct BodyCapture {
pub len: usize,
pub text: Option<String>,
pub truncated: bool,
pub unchanged: bool,
pub binary: bool,
}Expand description
How a captured body was handled.
Fields§
§len: usizeByte length of the real body. Always recorded — it is free, and answers “did the body change size?” without capturing the content.
text: Option<String>The body text, present only when body capture is enabled, the body changed since the previous step, and the content is valid UTF-8.
truncated: boolTrue when text was clipped to the configured limit.
unchanged: boolTrue when the body is byte-identical to the previous step’s, so the text was deliberately not repeated.
binary: boolTrue when the body is not valid UTF-8 (an image, blob, …). text is
omitted rather than rendered as replacement-character mojibake; len
still reports the true size.
Trait Implementations§
Source§impl Clone for BodyCapture
impl Clone for BodyCapture
Source§fn clone(&self) -> BodyCapture
fn clone(&self) -> BodyCapture
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 moreSource§impl Debug for BodyCapture
impl Debug for BodyCapture
Source§impl Default for BodyCapture
impl Default for BodyCapture
Source§fn default() -> BodyCapture
fn default() -> BodyCapture
Returns the “default value” for a type. Read more
Source§impl PartialEq for BodyCapture
impl PartialEq for BodyCapture
Source§fn eq(&self, other: &BodyCapture) -> bool
fn eq(&self, other: &BodyCapture) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BodyCapture
impl Serialize for BodyCapture
impl StructuralPartialEq for BodyCapture
Auto Trait Implementations§
impl Freeze for BodyCapture
impl RefUnwindSafe for BodyCapture
impl Send for BodyCapture
impl Sync for BodyCapture
impl Unpin for BodyCapture
impl UnsafeUnpin for BodyCapture
impl UnwindSafe for BodyCapture
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more