macro_rules! message {
($literal:literal) => { ... };
}Expand description
Returns a public-facing message for a string literal.
With the default obfuscate feature this uses the crate’s current
obfuscation backend. With default features disabled this wraps a borrowed
literal.
Accepts only a string literal — not a const, &'static str binding, or
concat!() expansion. The obfuscation backend requires a literal token, and
the macro enforces this for both feature configurations to keep behavior
consistent.
let message = redacted_error::message!("request failed");
assert_eq!(message.as_str(), "request failed");