pub struct IndexRecord {
pub path: PathBuf,
pub type_: String,
pub summary: String,
pub tags: Vec<String>,
pub links: Vec<String>,
pub created: Option<DateTime<FixedOffset>>,
pub updated: Option<DateTime<FixedOffset>>,
pub fields: BTreeMap<String, Value>,
}Expand description
One record in a type-folder’s index.jsonl — the complete, structured twin
of a single index.md browse entry.
tags are the document’s flat labels; links are its concept/relationship
wiki-link targets. Both are copied verbatim from the file — never inferred.
fields holds the remaining type-specific frontmatter so the structured
query path can filter on any key without opening the file.
Fields§
§path: PathBufStore-relative path of the file (the upsert key; last-write-wins).
Serialized with forward slashes regardless of OS (see [path_serde]) so
the index.jsonl catalog is byte-portable across platforms.
type_: StringThe file’s type.
summary: StringThe file’s summary.
The file’s flat tags.
links: Vec<String>The file’s concept/relationship wiki-link targets (store-relative).
created: Option<DateTime<FixedOffset>>created timestamp.
updated: Option<DateTime<FixedOffset>>updated timestamp (the recency key for the index.md cap order).
fields: BTreeMap<String, Value>Remaining type-specific frontmatter fields, verbatim.
Trait Implementations§
Source§impl Clone for IndexRecord
impl Clone for IndexRecord
Source§fn clone(&self) -> IndexRecord
fn clone(&self) -> IndexRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IndexRecord
impl Debug for IndexRecord
Source§impl<'de> Deserialize<'de> for IndexRecord
impl<'de> Deserialize<'de> for IndexRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for IndexRecord
impl PartialEq for IndexRecord
Source§fn eq(&self, other: &IndexRecord) -> bool
fn eq(&self, other: &IndexRecord) -> bool
self and other values to be equal, and is used by ==.