By default, this conversion is only performed at the top level for Python
dictionaries, collections.OrderedDicts, namedtuples, lists,
tuples, and attr.s classes. Elements of these structures are not
recursively converted.
Args
value
The Python container to convert.
recursive
Whether to convert elements recursively (False by default).
Returns
The corresponding instance of Struct.
Raises
TypeError
If the value is not of one of the supported container types.