1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[derive(Copy, Clone, Debug)] pub enum Entrance { APP, CLI, } impl Entrance { pub(crate) fn to_str(&self) -> &'static str { match self { Entrance::APP => "APP", Entrance::CLI => "CLI", } } }