redactkit 0.0.2

Prevent accidental leakage of secrets in Debug, tracing, and serialized output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Errors returned by redactkit.
#[derive(Debug, Error)]
pub enum Error {
    /// The provided regex pattern failed to compile.
    #[cfg(feature = "regex")]
    #[error("invalid regex pattern `{pattern}`: {source}")]
    InvalidRegex {
        /// The pattern that failed to compile.
        pattern: String,

        /// The underlying regex error.
        #[source]
        source: regex::Error,
    },
}