EcsElixirCore.Domain.Model.Features.Masking.Model.MaskingProperties (ecs_elixir_core v1.1.0)

Copy Markdown

Represents one masking rule configuration.

Summary

Types

t()

@type t() :: %EcsElixirCore.Domain.Model.Features.Masking.Model.MaskingProperties{
  char: String.t(),
  custom_placeholder: String.t() | nil,
  fields: [String.t()],
  masking_length: integer(),
  percentage: float(),
  type: :full | :partial | :custom | :remove,
  uri_pattern: String.t()
}

Functions

new(attrs)

@spec new(%{
  uri_pattern: String.t(),
  fields: [String.t()],
  char: String.t(),
  type: :full | :partial | :custom | :remove,
  percentage: float(),
  custom_placeholder: String.t() | nil,
  masking_length: integer()
}) :: {:ok, t()} | {:error, any()}