1 2 3 4 5 6 7
use nutype::nutype; #[nutype( validate(not_empty, len_char_max = 128, regex = r#"[\w+=,.@-]+"#), derive(Debug, Clone, Serialize) )] pub struct PolicyName(String);