Posexional.Field.TypedField (posexional v1.2.0)

View Source

this module represent a single field in a row of a positional file

Summary

Types

field_type()

@type field_type() ::
  :id
  | :binary_id
  | :integer
  | :float
  | :boolean
  | :string
  | :binary
  | :array
  | :list
  | :decimal
  | :date
  | :time
  | :datetime
  | :naive_datetime
  | :utc_datetime

t()

@type t() :: %Posexional.Field.TypedField{
  field_value: term(),
  name: term(),
  opts: term(),
  type: term()
}

Functions

new(name, type, size, opts \\ [])

@spec new(atom(), field_type(), integer(), Keyword.t()) :: t()

read(field, content)

@spec read(t(), binary()) :: any()