1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Debug, Eq, PartialEq, Copy, Clone)] pub enum Type { SACL, DACL, } impl Type { pub fn sddl_string(&self) -> &'static str { match self { Type::SACL => "S", Type::DACL => "D", } } }