diff options
Diffstat (limited to 'v1/src/data.rs')
-rw-r--r-- | v1/src/data.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/v1/src/data.rs b/v1/src/data.rs new file mode 100644 index 0000000..4b1da5a --- /dev/null +++ b/v1/src/data.rs @@ -0,0 +1,13 @@ +pub static MESSAGE: &'static str = "Hello"; + +pub enum SimpleFsData { + File(String, String), + Directory(String, Vec<SimpleFsData>) +} + +// pub static HELLO: &'static SimpleFsData = +// SimpleFsData:File("hello.txt", "Hello World"); + +pub fn getData1() -> SimpleFsData { + SimpleFsData::File("hello.txt".to_string(), "Hello".to_string()) +} |