Stellar.Horizon.Mapping (Elixir Stellar SDK v0.5.0) View Source

Takes a result map or list of maps from Horizon response and returns a struct (e.g. %Horizon.Transaction{}) or list of structs.

Link to this section Summary

Link to this section Types

Specs

attr_type() ::
  :integer
  | :float
  | :date_time
  | {:map, Keyword.t()}
  | {:struct, module()}
  | {:list, atom(), Keyword.t() | module()}

Specs

attr_value() :: any()

Link to this section Functions

Specs

build(module :: struct(), attrs :: map()) :: struct()

Specs

parse(module :: struct(), mapping :: Keyword.t()) :: struct()