AshThrift (ash_thrift v0.2.0-rc.4)

Link to this section Summary

Link to this section Functions

Link to this function

dump(resource, variant \\ nil, dest \\ nil)

Specs

dump(
  resource :: resource_t,
  variant :: String.t() | nil,
  thrift_struct :: map() | nil
) :: 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() | nil,
  dest :: resource_t | nil
) :: resource_t
when resource_t: term()

Builds an Ash resource from a thrift struct

Link to this function

relationship_variant(resource, variant)

Specs

relationship_variant(resource :: module(), variant :: String.t() | nil) ::
  String.t()
Link to this function

variant_module(resource, variant)

Specs

variant_module(resource :: module(), variant :: String.t() | nil) :: module()