Packages

Build Elixir structs with validation, sanitization, nested sub-structs, conditional fields, pattern-keyed maps, and an Ash extension. Built on Spark.

Current section

Files

Jump to
guarded_struct lib guarded_struct derive extension dsl validator.ex
Raw

lib/guarded_struct/derive/extension/dsl/validator.ex

defmodule GuardedStruct.Derive.Extension.Dsl.Validator do
@moduledoc false
defstruct [:name, :fun, :__spark_metadata__]
@type t :: %__MODULE__{
name: atom(),
fun: term()
}
end