GgenIgniter.Frontmatter.MatchRule (ggen_igniter v26.9.8)

Copy Markdown View Source

Mirrors Rust MatchRule (template.rs:189-200).

Summary

Types

match_kind()

@type match_kind() :: :contains | :exact | :regex

match_occurrence()

@type match_occurrence() :: :first | :last | :unique | :nth

match_scope()

@type match_scope() :: :auto | :line | :file

t()

@type t() :: %GgenIgniter.Frontmatter.MatchRule{
  case_sensitive: boolean(),
  index: non_neg_integer(),
  matcher: match_kind(),
  occurrence: match_occurrence(),
  pattern: String.t(),
  scope: match_scope(),
  trim: boolean()
}

Functions

from_map(map)

@spec from_map(map()) :: t()