Module metadata

Module metadata 

Source
Expand description

Document metadata.

Metadata holds the document’s title, author, subject, keywords, and timestamps. All fields are optional; an empty Metadata is valid.

Timestamps are stored as Option<String> in ISO 8601 format (e.g. "2026-02-07T10:30:00Z"). The chrono crate is intentionally avoided to keep Core’s dependency footprint minimal – parse dates at the Smithy layer when needed.

§Examples

use hwpforge_core::Metadata;

let meta = Metadata {
    title: Some("Quarterly Report".to_string()),
    author: Some("Kim".to_string()),
    ..Metadata::default()
};
assert_eq!(meta.title.as_deref(), Some("Quarterly Report"));
assert!(meta.subject.is_none());

Structs§

Metadata
Document metadata: title, author, subject, keywords, timestamps.