AshThrift (ash_thrift v0.2.0-rc.3)

Link to this section Summary

Functions

Dumps an Ash resource to a thrift struct

Builds an Ash resource from a thrift struct

Link to this section Functions

Link to this function

dump(resource, variant, dest \\ %{})

Specs

dump(resource :: resource_t, variant :: String.t(), thrift_struct :: map()) ::
  resource_t
when resource_t: struct()

Dumps an Ash resource to a thrift struct

Link to this function

into(data, resource, variant, dest \\ nil)

Specs

into(
  data :: map(),
  resource :: module(),
  variant :: String.t(),
  dest :: resource_t | nil
) :: resource_t
when resource_t: term()

Builds an Ash resource from a thrift struct