Terrasol.Document.Format behaviour (Terrasol v2.0.2)
View SourceBehaviour for Document handler modules
Summary
Callbacks
Build a struct from a supplied map using proper defaults
The "format" value which this module handles
Parse a map into a struct.
Callbacks
Build a struct from a supplied map using proper defaults
Return {:invalid, [atoms for invalid supplied keys]}
@callback format_string() :: String.t()
The "format" value which this module handles
Parse a map into a struct.
Return {:invalid, [atoms for unvalidatable keys]}