# `GgenIgniter.Frontmatter.MatchRule`
[🔗](https://github.com/seanchatmangpt/ggen_igniter/blob/v26.9.8/lib/ggen_igniter/frontmatter.ex#L303)

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

# `match_kind`

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

# `match_occurrence`

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

# `match_scope`

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

# `t`

```elixir
@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()
}
```

# `from_map`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
