For the first question I have no idea what you mean. For the second, Nim has no classes, so there are no methods coupled closely to objects. But for the fields of objects, there are various fields and fieldPairs iterators, see
[https://nim-lang.org/docs/iterators.html#fields.i%2CT](https://nim-lang.org/docs/iterators.html#fields.i%2CT)