(entry: &VaultEntry, key: &str)
| 1124 | } |
| 1125 | |
| 1126 | fn vault_frontmatter_string(entry: &VaultEntry, key: &str) -> Option<String> { |
| 1127 | serde_json::from_str::<serde_json::Value>(&entry.frontmatter_json) |
| 1128 | .ok() |
| 1129 | .and_then(|value| { |
| 1130 | value |
| 1131 | .get(key) |
| 1132 | .and_then(serde_json::Value::as_str) |
| 1133 | .map(str::to_string) |
| 1134 | }) |
| 1135 | } |
| 1136 | |
| 1137 | /// Update the manifest when a vault entry is stored. |
| 1138 | fn update_manifest_for_store( |
no test coverage detected