diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-11 00:36:28 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-11 00:36:28 -0400 |
commit | 35f5d3c514b640d3b99c643890bb4a655025994d (patch) | |
tree | e69e85f607cc5ca64f07d2ac28ee6a2f7ca5c794 /v1/src/data.rs | |
parent | 736e822f747e86f3d1bea54b8b83f5a8f0a21da8 (diff) |
Add an extra library file with some junk.
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()) +} |