use item::Item; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Storage { items : Vec, capacity : usize, } impl Storage { pub fn new(items : Vec) -> Storage { Storage { items : items, capacity : 100, } } }