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).
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexRecord
impl PartialEq for IndexRecord
Source§fn eq(&self, other: &IndexRecord) -> bool
fn eq(&self, other: &IndexRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexRecord
impl Serialize for IndexRecord
impl StructuralPartialEq for IndexRecord
Auto Trait Implementations§
impl Freeze for IndexRecord
impl RefUnwindSafe for IndexRecord
impl Send for IndexRecord
impl Sync for IndexRecord
impl Unpin for IndexRecord
impl UnsafeUnpin for IndexRecord
impl UnwindSafe for IndexRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more