summaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.rs')
-rw-r--r--src/storage.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/storage.rs b/src/storage.rs
new file mode 100644
index 0000000..00dca8b
--- /dev/null
+++ b/src/storage.rs
@@ -0,0 +1,16 @@
+use item::Item;
+
+#[derive(Serialize, Deserialize, Debug, Clone)]
+pub struct Storage {
+ items : Vec<Item>,
+ capacity : usize,
+}
+
+impl Storage {
+ pub fn new(items : Vec<Item>) -> Storage {
+ Storage {
+ items : items,
+ capacity : 100,
+ }
+ }
+}