#[non_exhaustive]pub struct BodySnippetConfig {
pub enabled: bool,
pub max_len: usize,
}Expand description
Response body snippet capture configuration (used for diagnostics on errors).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolEnable capturing a truncated, redacted snippet on errors.
max_len: usizeMax snippet length in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for BodySnippetConfig
impl Clone for BodySnippetConfig
Source§fn clone(&self) -> BodySnippetConfig
fn clone(&self) -> BodySnippetConfig
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 BodySnippetConfig
impl Debug for BodySnippetConfig
Source§impl Default for BodySnippetConfig
impl Default for BodySnippetConfig
impl Copy for BodySnippetConfig
Auto Trait Implementations§
impl Freeze for BodySnippetConfig
impl RefUnwindSafe for BodySnippetConfig
impl Send for BodySnippetConfig
impl Sync for BodySnippetConfig
impl Unpin for BodySnippetConfig
impl UnwindSafe for BodySnippetConfig
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