pub struct ErrorSanitizationConfig {
pub enabled: bool,
pub generic_messages: bool,
pub internal_logging: bool,
pub leak_sensitive_details: bool,
pub user_facing_format: String,
}Expand description
Error sanitization configuration
Fields§
§enabled: boolEnable error sanitization
generic_messages: boolUse generic error messages for users
internal_logging: boolLog full errors internally
leak_sensitive_details: boolNever leak sensitive details (security flag)
user_facing_format: StringUser-facing error format (“generic”, “simple”, “detailed”)
Implementations§
Trait Implementations§
Source§impl Clone for ErrorSanitizationConfig
impl Clone for ErrorSanitizationConfig
Source§fn clone(&self) -> ErrorSanitizationConfig
fn clone(&self) -> ErrorSanitizationConfig
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 ErrorSanitizationConfig
impl Debug for ErrorSanitizationConfig
Source§impl Default for ErrorSanitizationConfig
impl Default for ErrorSanitizationConfig
Source§impl<'de> Deserialize<'de> for ErrorSanitizationConfigwhere
ErrorSanitizationConfig: Default,
impl<'de> Deserialize<'de> for ErrorSanitizationConfigwhere
ErrorSanitizationConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorSanitizationConfig
impl RefUnwindSafe for ErrorSanitizationConfig
impl Send for ErrorSanitizationConfig
impl Sync for ErrorSanitizationConfig
impl Unpin for ErrorSanitizationConfig
impl UnwindSafe for ErrorSanitizationConfig
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