pub struct EmittedFile {
pub path: String,
pub layer: Option<Layer>,
pub frontmatter: Map<String, Value>,
pub type_: Option<String>,
pub meta_type: Option<String>,
pub title: Option<String>,
pub summary: Option<String>,
pub body: String,
pub links: Vec<String>,
pub created: Option<DateTime<FixedOffset>>,
pub updated: Option<DateTime<FixedOffset>>,
pub sha256: String,
}Expand description
One file of the dump: the store-relative identity, the parsed frontmatter (values verbatim), the derived fields, the verbatim body, the normalized link targets, and the content hash.
Fields§
§path: StringStore-relative path, POSIX separators (records/contacts/sarah.md).
layer: Option<Layer>The layer the file lives in; None for the root DB.md.
frontmatter: Map<String, Value>The full parsed frontmatter mapping, values verbatim (the index
projection: strings/numbers/bools/lists as written; an inline
[[...]]-valued field as its wiki-link literal). Empty when the file
has no frontmatter block or its YAML does not parse.
type_: Option<String>The frontmatter type, scalar-coerced like index/validate coerce it.
meta_type: Option<String>The effective meta-type — records only: the declared value verbatim,
or fact when absent (SPEC default). None for sources and DB.md.
title: Option<String>Display title: the name field, else the title field, else the
body’s first ATX # heading (fence-aware, CommonMark rules).
summary: Option<String>The frontmatter summary, scalar-coerced; None when absent.
body: StringThe verbatim markdown body after the frontmatter block (the whole text when the file has no frontmatter block).
links: Vec<String>Normalized wiki-link targets in first-appearance order, deduped:
alias stripped (text before |), whitespace trimmed, .md appended —
the on-disk spelling, so a target matches a document path directly.
Dangling targets are included (existence is validate’s concern).
created: Option<DateTime<FixedOffset>>Frontmatter created, when present and RFC3339-parseable.
updated: Option<DateTime<FixedOffset>>Frontmatter updated, when present and RFC3339-parseable.
sha256: StringLowercase-hex SHA-256 of the raw file bytes — the exact bytes this projection was parsed from, so a consumer can detect drift.
Trait Implementations§
Source§impl Clone for EmittedFile
impl Clone for EmittedFile
Source§fn clone(&self) -> EmittedFile
fn clone(&self) -> EmittedFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more