Current section

Files

Jump to
xberg lib xberg redaction_pattern.ex
Raw

lib/xberg/redaction_pattern.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:86e3b491373cb06a224074d5c175e5bf4c341443fbe2e0370128e5b090afde61
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.RedactionPattern do
@moduledoc """
One user-supplied regex pattern to redact.
The pattern is compiled with the Rust `regex` crate (no look-around). Case
sensitivity is encoded in the pattern via the `(?i)` inline flag when
[`Self::case_sensitive`] is `false`.
"""
@typedoc "One user-supplied regex pattern to redact."
@type t :: %__MODULE__{
label: String.t() | nil,
pattern: String.t() | nil,
case_sensitive: boolean()
}
defstruct label: nil,
pattern: nil,
case_sensitive: false
end