posexional v1.0.0 Posexional.Field.TypedField View Source

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

Link to this section Summary

Link to this section Types

Link to this type

field_type()

View Source
field_type() ::
  :id
  | :binary_id
  | :integer
  | :float
  | :boolean
  | :string
  | :binary
  | :array
  | :list
  | :decimal
  | :date
  | :time
  | :datetime
  | :naive_datetime
  | :utc_datetime
Link to this type

t()

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

Link to this section Functions

Link to this function

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

View Source
new(atom(), field_type(), integer(), Keyword.t()) ::
  %Posexional.Field.TypedField{
    field_value: term(),
    name: term(),
    opts: term(),
    type: term()
  }
Link to this function

read(field, content)

View Source
read(t(), binary()) :: any()