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