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;
|
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]
|
},
|
||||||
}),
|
],
|
||||||
},
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue