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 projects: 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.
projects: Option<Vec<String>>Project slugs this item is associated with (e.g. ["frontend", "backend"]).
Omitted when empty or not set. For regular per-project items this stays empty;
for org-wide items it is populated at creation time with the originating project’s slug.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Frontmatter
impl Debug for Frontmatter
Source§impl<'de> Deserialize<'de> for Frontmatter
impl<'de> Deserialize<'de> for Frontmatter
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 Frontmatter
impl PartialEq for Frontmatter
Source§fn eq(&self, other: &Frontmatter) -> bool
fn eq(&self, other: &Frontmatter) -> bool
self and other values to be equal, and is used by ==.