Rewrite Bookmark FileHeaderSpec

One file is one bookmark, so we should have the appropriate header spec
for this.
This commit is contained in:
Matthias Beyer 2015-10-31 12:12:40 +01:00
parent 07f223bb8a
commit b76d38f4c6

View file

@ -1,18 +1,15 @@
use storage::file::FileHeaderSpec as FHS; use storage::file::FileHeaderSpec as FHS;
pub fn get_spec() -> FHS { pub fn get_spec() -> FHS {
FHS::Array { FHS::Map {
allowed_types: vec![FHS::Map { keys: vec![
keys: vec![ FHS::Key { name: "URL", value_type: Box::new(FHS::Text) },
FHS::Key { name: "ID", value_type: Box::new(FHS::Text) }, FHS::Key { name: "TAGS",
FHS::Key { name: "URL", value_type: Box::new(FHS::Text) }, value_type: Box::new(FHS::Array {
FHS::Key { name: "TAGS", allowed_types: vec![FHS::Text]
value_type: Box::new(FHS::Array { }),
allowed_types: vec![FHS::Text] },
}), ],
},
],
}],
} }
} }