Base
Define the base classes and mixins for handling structures
- class BaseDataMixin[source]
Base mixin for data classes to handle structure conversion.
- structure()[source]
Handle the structure conversion for dbus data class.
Note
This method only exists due to the bad API from dasbus to handle such scenario of converting the data class to a dbus structure.
It tries to use the underlying
to_structuremethod to convert the parent class to a structure, but with a sane operation to just usestructure()after we initialize the class.- Returns:
The structure representation of the data.
- Return type:
Structure