# generated by datamodel-codegen:
#   filename:  default_factory_nested_model.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from msgspec import UNSET, Struct, UnsetType, field


class Address(Struct):
    street: str | UnsetType = UNSET
    city: str | UnsetType = UNSET


class Contact(Struct):
    email: str | UnsetType = UNSET
    phone: str | UnsetType = UNSET


class Model(Struct):
    name: str
    address: Address | UnsetType = field(default_factory=Address)
    contact: Contact | UnsetType = field(default_factory=Contact)
