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;
pub fn get_spec() -> FHS {
FHS::Array {
allowed_types: vec![FHS::Map {
keys: vec![
FHS::Key { name: "ID", value_type: Box::new(FHS::Text) },
FHS::Key { name: "URL", value_type: Box::new(FHS::Text) },
FHS::Key { name: "TAGS",
value_type: Box::new(FHS::Array {
allowed_types: vec![FHS::Text]
}),
},
],
}],
FHS::Map {
keys: vec![
FHS::Key { name: "URL", value_type: Box::new(FHS::Text) },
FHS::Key { name: "TAGS",
value_type: Box::new(FHS::Array {
allowed_types: vec![FHS::Text]
}),
},
],
}
}