pub struct BodySnippetConfig {
pub enabled: bool,
pub max_bytes: usize,
}Expand description
Controls whether and how response snippets are retained in errors. Configuration for attaching a redacted body snippet to API errors.
Fields§
§enabled: boolWhether body snippet capture is enabled.
max_bytes: usizeMaximum number of bytes to keep.
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 UnsafeUnpin 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