Introduction
Nested object types help you describe objects inside other objects clearly. This makes your code easier to understand and safer to use.
When you have a user object that contains an address object inside it.
When you want to describe a product with details like price and manufacturer info inside it.
When you need to model a blog post that has an author object with name and contact info.
When you want to organize settings where some settings are grouped inside others.