ExConstructor.populate_struct
You're seeing just the function
populate_struct
, go back to ExConstructor module for more information.
Link to this function
populate_struct(struct, map_or_kwlist)
Specs
populate_struct(struct(), map_or_kwlist()) :: struct()
Returns a copy of struct
into which the values in map_or_kwlist
have been applied.
Keys of map_or_kwlist
may be strings or atoms, in camelCase or
under_score format.
Link to this function
populate_struct(struct, map_or_kwlist, opts)
Specs
populate_struct( struct(), map_or_kwlist(), %ExConstructor.Options{ atoms: term(), camelcase: term(), strings: term(), underscore: term(), uppercamelcase: term() } | map_or_kwlist() ) :: struct()
Returns a copy of struct
into which the values in map_or_kwlist
have been applied.
Keys of map_or_kwlist
may be strings or atoms, in camelCase,
UpperCamelCase, or under_score format.
opts
may contain keys strings
, atoms
, camelcase
, uppercamelcase
,
and underscore
.
Set these keys false to prevent testing of that key format in
map_or_kwlist
. All default to true
.