Mine v0.2.1 Mine.Alias View Source

Stores the data associated with an aliased field. Composed at compile time and used during runtime to determine how a field should be translated.

Link to this section Summary

Functions

Utility function for merging two Mine.Alias structs. Currently only returns the second struct.

Creates a new Mine.Alias struct

Link to this section Types

Link to this type

t()

View Source
t() :: %Mine.Alias{
  as: Mine.key(),
  default: any(),
  map_from: term(),
  map_to: term()
}

Link to this section Functions

Link to this function

merge(key, s1, s2)

View Source
merge(any(), t(), t()) :: t()

Utility function for merging two Mine.Alias structs. Currently only returns the second struct.

Link to this function

new(as, default)

View Source
new(Mine.key(), any()) :: t()

Creates a new Mine.Alias struct