securefmt 0.1.5

Drop-in replacement for the Debug derive macro that hides fields marked as sensitive.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::errors::Result;
use proc_macro2::TokenStream;

#[cfg(test)]
use mockall::automock;

#[cfg_attr(test, automock)]
pub trait FmtBodySource {
    fn generate_fmt_body(&self, ident: &str) -> Result<TokenStream>;
}