Breakfast v0.1.4 Breakfast.Field View Source
The %Elixir.Breakfast.Field{} struct contains all the information related to a particular
field on a struct created with cereal:
mod: The name of the module that defines this fieldname: The name of the fieldtype: The type of the fieldfetcher: The function that'll be used to fetch the value for this fieldcaster: The function that'll be used to cast the value for this fieldvalidator: The function that'll be used to validate the value for this fielddefault: The default value
Link to this section Summary
Link to this section Types
Link to this type
t()
View Sourcet() :: %Breakfast.Field{
caster: (atom() | (any() -> {:ok, any()} | :error) | :default) | nil,
default: ({:ok, term()} | :error) | nil,
fetcher: (atom() | (any(), any() -> any()) | :default) | nil,
mod: module() | nil,
name: atom() | nil,
type: type() | nil,
validator: (atom() | (any() -> [any()]) | :default) | nil
}