For example,
struct SomeStruct {
uint _someUint;
uint _someUint2;
mapping(address => uint) _someMapping;
}
A getter function for a non-nested struct could be
function retSomeStruct() public returns(SomeStruct memory) {
}
But this doesn't work for the nested one,
TypeError: Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
To return a struct containing _someUint and _someUint2, apart from destructing, is there other ways to just skip the mapping?