Packages

Elixir SDK for the Stellar network.

Current section

Files

Jump to
stellar_sdk_fork lib horizon resource.ex
Raw

lib/horizon/resource.ex

defmodule Stellar.Horizon.Resource do
@moduledoc """
Specifies contracts to build Horizon resources.
"""
@type attrs :: map()
@type options :: Keyword.t()
@type resource :: struct()
@callback new(attrs(), options()) :: resource()
end