pub struct Frontmatter {
pub display_number: Option<u32>,
pub status: Option<String>,
pub priority: Option<u32>,
pub created_at: String,
pub updated_at: String,
pub deleted_at: Option<String>,
pub tags: Option<Vec<String>>,
pub custom_fields: HashMap<String, Value>,
}Expand description
Generic frontmatter that adapts to the item type’s features.
Optional fields are gated by skip_serializing_if so they don’t appear
in the YAML output when the feature is disabled. This works with the
existing parse_frontmatter<T> / generate_frontmatter<T> generics.
Fields§
§display_number: Option<u32>Human-readable display number (only if features.displayNumber)
status: Option<String>Item status (only if features.status)
priority: Option<u32>Priority level, 1 = highest (only if features.priority)
created_at: StringISO timestamp when the item was created (always present)
updated_at: StringISO timestamp when the item was last updated (always present)
deleted_at: Option<String>ISO timestamp when soft-deleted (empty if not deleted)
Free-form tags for categorization (e.g. ["bug", "frontend"]).
Omitted when empty or not set.
custom_fields: HashMap<String, Value>Custom fields for extensibility — flattened to the top level of the
frontmatter so users editing files by hand can write myField: value
directly without a customFields: wrapper.
Trait Implementations§
Source§impl Clone for Frontmatter
impl Clone for Frontmatter
Source§fn clone(&self) -> Frontmatter
fn clone(&self) -> Frontmatter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more