pub static MESSAGE: &'static str = "Hello"; pub enum SimpleFsData { File(String, String), Directory(String, Vec) } // pub static HELLO: &'static SimpleFsData = // SimpleFsData:File("hello.txt", "Hello World"); pub fn getData1() -> SimpleFsData { SimpleFsData::File("hello.txt".to_string(), "Hello".to_string()) }