masked 0.1.4

A wrapper over a value containing sensitive information
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

#[test]
fn should_pass_the_as_ref_through() {
    let masked = "".to_owned().masked();
    let _as_str_ref: &str = masked.as_ref();
    let _as_string_ref: &String = masked.as_ref();

    struct Config;

    let masked = Config.masked();
    let _config_ref: &Config = masked.as_ref();

    let masked = std::sync::Arc::new(Config).masked();
    let _config_ref: &Config = masked.as_ref();
}