dumpit
A derive macro like #[derive(Debug)] that doesn't require all fields to implement Debug.
Non-Debug fields display as <!Debug>. Field-level attributes control formatting.
See crate documentation for full usage and examples.
use Dump;
;
let cfg = Config ;
println!;
// Outputs:
// r#"Config {
// name: "app",
// _internal: <!Debug>,
// password: "[-- redacted --]",
// long_text: "Lorem ipsu...",
// binary(5/100): [0, 1, 2, 3, 4],
// }"#
)
License
Licensed under either of
at your option.