pub struct ErrorHandlerConfig {
pub include_panic_details: bool,
pub log_errors: bool,
}
Expand description
Error handling middleware configuration
Fields§
§include_panic_details: bool
Whether to include panic details in error responses (development only)
log_errors: bool
Whether to log errors
Trait Implementations§
Source§impl Clone for ErrorHandlerConfig
impl Clone for ErrorHandlerConfig
Source§fn clone(&self) -> ErrorHandlerConfig
fn clone(&self) -> ErrorHandlerConfig
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 ErrorHandlerConfig
impl Debug for ErrorHandlerConfig
Auto Trait Implementations§
impl Freeze for ErrorHandlerConfig
impl RefUnwindSafe for ErrorHandlerConfig
impl Send for ErrorHandlerConfig
impl Sync for ErrorHandlerConfig
impl Unpin for ErrorHandlerConfig
impl UnwindSafe for ErrorHandlerConfig
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