1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use util::hash::make_salt; pub struct DBConfig { salt: Vec<u8>, } impl DBConfig { pub fn new() -> Self { DBConfig { salt: make_salt() } } pub fn load() -> Self { unimplemented!(); // TODO @mverleg: } pub fn save(&self) -> Result<(), ()> { unimplemented!(); // TODO @mverleg: } }