2023-09-06 13:44:00 +01:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from msgspec import Struct, field
|
|
|
|
|
2023-10-25 03:02:26 +01:00
|
|
|
|
2023-09-06 13:44:00 +01:00
|
|
|
class MenuItem(Struct, kw_only=False, omit_defaults=True):
|
|
|
|
label: str
|
|
|
|
path: str | None = None
|
|
|
|
href: str | None = None
|
|
|
|
items: list[MenuItem] = field(default_factory=list)
|
|
|
|
|
|
|
|
|
|
|
|
class GeneralConfig(Struct, kw_only=False):
|
|
|
|
current_version: str
|