qmi.core.config_struct.configstruct

qmi.core.config_struct.configstruct(cls: type[_T]) type[_T]

Class decorator to mark classes that hold QMI configuration data.

This decorator is based on the standard @dataclass decorator. It calls @dataclass(init=False) to do most of the work, then adds a custom __init__() method.