Skip to main content

Module types

Module types 

Source
Expand description

This module defines the core types used throughout the frontmatter-gen crate. It includes the Format enum for representing different frontmatter formats, the Value enum for representing various data types that can be stored in frontmatter, and the Frontmatter struct which is the main container for frontmatter data.

Structs§

Frontmatter
Represents the frontmatter, a collection of key-value pairs.

Enums§

Format
Represents the different formats supported for frontmatter serialization/deserialization.
Value
A flexible value type that can hold various types of data found in frontmatter.

Functions§

escape_str
Escapes special characters in a string (e.g., backslashes and quotes).