Rewrite Bookmark FileHeaderSpec
One file is one bookmark, so we should have the appropriate header spec for this.
This commit is contained in:
parent
07f223bb8a
commit
b76d38f4c6
1 changed files with 9 additions and 12 deletions
|
@ -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]
|
||||
}),
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue