Skip to main content

Crate remora_derive

Crate remora_derive 

Expand description

Derive macros for the D-Bus value types of the remora clients.

The macros turn enums with a fallback variant and bit flag structs into D-Bus values that keep unknown values, so new upstream values never fail to parse. The generated code uses serde and zbus, so the crate that uses the macros must depend on both.

Modulesยง

flags ๐Ÿ”’
int_enum ๐Ÿ”’
string_enum ๐Ÿ”’
variants ๐Ÿ”’

Derive Macrosยง

Flags
Derives the operations and conversions of a bit flag struct.
IntEnum
Derives the conversions of an enum that D-Bus sends as an integer.
StringEnum
Derives the conversions of an enum that D-Bus sends as a string.