View Source Posexional.Field.TypedField (posexional v1.1.0-rc.0)

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

Summary

Types

@type field_type() ::
  :id
  | :binary_id
  | :integer
  | :float
  | :boolean
  | :string
  | :binary
  | :array
  | :list
  | :decimal
  | :date
  | :time
  | :datetime
  | :naive_datetime
  | :utc_datetime
@type t() :: %Posexional.Field.TypedField{
  field_value: term(),
  name: term(),
  opts: term(),
  type: term()
}

Functions

Link to this function

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

View Source
@spec new(atom(), field_type(), integer(), Keyword.t()) :: t()
@spec read(t(), binary()) :: any()